Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Odata query to connect to Azure Devops

Hi,

 

I have been trying to write an Odata query that collects all the "Initiative" work items from mulitple projects within one Azure DevOps Organisation. However, some of the projects in the organisation does not have "Initiative" work items (not in the template of the project).

 

My query:

 

$select=WorkItemId,Title,ActivatedDate,Area,ClosedDate,CreatedDate,Iteration,ParentWorkItemId,Priority,StartDate,State,StateCategory,Tags,TargetDate,ValueArea,WorkItemType,Project
    &$filter=
        Project/ProjectName eq '{project_that_contains_initiative_work_items}'
        & Project/ProjectName eq '{project_that_contains_initiative_work_items}'
        & WorkItemType eq 'Initiative'
 &$expand=Iteration,Area,Tags,Project
 
This query seems to return work items of other types, but none of the "Initiative" type.
 
I have checked that I can collect initiative work items if I create a query for each project, but would prefer not to as there are quite a few projects to query from. I have also checked that the query works if I am query for other work items of another type (a type that exists in all projects).
 
Thank you!
1 REPLY 1
Anonymous
Not applicable

Hi  @Anonymous ,

 

This is the related document, you can view this content:

https://www.bigmountainanalytics.com/how-to-customize-work-item-types-in-azure-devops/

https://learn.microsoft.com/en-us/azure/devops/report/powerbi/odataquery-connect?view=azure-devops

https://community.powerbi.com/t5/Power-Query/Power-BI-with-Devops-how-to-retrieve-all-work-items-in-a-Release/td-p/1906780

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.