port-labs / ocean

🌊 Ocean 🌊 is an innovative solution developed by Port to seamlessly integrate various third-party systems with our developer portal product, empowering engineers to effortlessly prioritize key features and streamline the integration process.
https://ocean.getport.io
Apache License 2.0
109 stars 39 forks source link

[ADO] Add work items to get issues, tasks, and epics #893

Closed phalbert closed 3 weeks ago

phalbert commented 1 month ago

Description

This PR introduces the functionality to retrieve issues, tasks, and epics from Azure DevOps (ADO) projects within the organization. The implementation involves a two-step process to efficiently fetch the required data:

Fetch Work Item IDs using WIQL:

A WIQL (Work Item Query Language) query is executed to retrieve the IDs of the work items (issues, tasks, and epics) that match the specified criteria. This step helps optimize data retrieval by fetching only the necessary IDs, avoiding unnecessary data transfer.

Fetch Detailed Work Item Data:

Using the obtained work item IDs, the API is called to fetch the complete details of each work item. Batch processing is employed to handle potential API limitations on the number of IDs that can be fetched in a single request.

Type of change

Please leave one option from the following and delete the rest:

Screenshots

Include screenshots from your environment showing how the resources of the integration will look.

Screenshot 2024-08-09 at 21 39 38 Screenshot 2024-08-09 at 21 40 36 Screenshot 2024-08-09 at 21 39 00

API Documentation

Provide links to the API documentation used for this integration.