The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I’m trying to fetch Test Plans and their linked Test Cases (TCs) from Azure DevOps into Power BI for reporting purposes. However, when I fetch data using the Azure DevOps REST API, I am retrieving all work item types, including bugs, tasks, etc., but I’m unable to filter or retrieve the specific Test Plans and their linked Test Cases (TCs).
I want to pull the following information into Power BI:
Test Plans: The list of all test plans in my Azure DevOps project.
Linked Test Cases: The test cases linked to each test plan.
When fetching data, I’m seeing work item types, but Test Plans and linked Test Cases are not specifically fetched.
I need help in retrieving just the Test Plans and their Linked Test Cases (not all work item types).
Using the Test Plans API (https://dev.azure.com/{organization}/{project}/_apis/test/plans?api-version=6.0) to fetch test plans.
Fetching linked test cases with API queries like https://dev.azure.com/{organization}/{project}/_apis/test/plans/{testPlanId}/testcases?api-version=6....
However, I'm still getting all work item types and not the specific test plans and their linked test cases.
Can someone guide me on how to properly filter or structure the API queries to get only the Test Plans and Linked Test Cases in Power BI? Any help would be greatly appreciated!
Thank you!
Solved! Go to Solution.
Hi @Anirudh_TEST,
Thank you for reaching out to the Microsoft fabric community forum.
After reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:
Configure API Access: Ensure you have access to the Azure DevOps organization and project. Generate a Personal Access Token (PAT) in Azure DevOps to authenticate API requests.
Fetch Test Plans: Use the Azure DevOps REST API to get a list of Test Plans for a specific project.
GET https://dev.azure.com/{organization}/{project}/_apis/test/plans?api-version=6.0
Replace {organization} and {project} with your Azure DevOps organization and project names.
Fetch Linked Test Cases for a Specific Test Plan. Once you have the Test Plan ID, fetch the linked Test Cases using this API:
GET https://dev.azure.com/{organization}/{project}/_apis/test/plans/{testPlanId}/testcases?api-version=6.0
Connect to power bi: Open Power BI and use the Web Connector to make API calls. Enter the API URL and authenticate using your PAT. Transform Data: Use Power BI's data transformation tools to structure the data as needed. Create relationships between Test Plans and Test Cases for reporting.
Repeat for the Test Cases API by passing each Test Plan ID dynamically. Create a custom function in Power BI to loop through all test plans and fetch their linked test cases. Schedule data refreshes in Power BI to keep the reports up-to-date.
I hope this could resolve your issue, if you need any further assistance, feel free to reach out. If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @Anirudh_TEST,
Thank you for reaching out to the Microsoft fabric community forum.
After reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:
Configure API Access: Ensure you have access to the Azure DevOps organization and project. Generate a Personal Access Token (PAT) in Azure DevOps to authenticate API requests.
Fetch Test Plans: Use the Azure DevOps REST API to get a list of Test Plans for a specific project.
GET https://dev.azure.com/{organization}/{project}/_apis/test/plans?api-version=6.0
Replace {organization} and {project} with your Azure DevOps organization and project names.
Fetch Linked Test Cases for a Specific Test Plan. Once you have the Test Plan ID, fetch the linked Test Cases using this API:
GET https://dev.azure.com/{organization}/{project}/_apis/test/plans/{testPlanId}/testcases?api-version=6.0
Connect to power bi: Open Power BI and use the Web Connector to make API calls. Enter the API URL and authenticate using your PAT. Transform Data: Use Power BI's data transformation tools to structure the data as needed. Create relationships between Test Plans and Test Cases for reporting.
Repeat for the Test Cases API by passing each Test Plan ID dynamically. Create a custom function in Power BI to loop through all test plans and fetch their linked test cases. Schedule data refreshes in Power BI to keep the reports up-to-date.
I hope this could resolve your issue, if you need any further assistance, feel free to reach out. If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @Anirudh_TEST,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Anirudh_TEST,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @Anirudh_TEST,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
User | Count |
---|---|
78 | |
73 | |
38 | |
30 | |
28 |
User | Count |
---|---|
107 | |
100 | |
55 | |
49 | |
45 |