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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sudhindra
New Member

Create PowerBI reports for all bugs linked to an epic using ADO queries of List Type : Tree

Hi -

 

We have work item hierarchy in our project as Epic -> Feature -> User Story -> Bug.

 

lets say my Epic Id is 123, i am using below query to get all bugs for the epic. I am looking to create a PowerBI dashboard by creating a query as below but the response is giving incorrect data. Kindly advise.

 

let
Source = OData.Feed("https://analytics.dev.azure.com/{workspace}/{project}/_odata/v3.0-preview/WorkItems?" & "$filter=WorkItemId ge 123" & "and State ne 'Closed' and State ne 'Removed'" & "&$select=Title,WorkItemType,State,AreaSK" & "&$expand=AssignedTo($select=UserName),Iteration($select=IterationPath),Area($select=AreaPath)," & "Links(" & "$filter=LinkTypeName eq 'Child'" & "and TargetWorkItem/WorkItemType eq 'Bug';" & "$select=LinkTypeName;" & "$expand=TargetWorkItem($select=WorkItemType,WorkItemId,Title,State)" & ")", null, [Implementation="2.0", OmitValues=ODataOmitValues.Nulls, ODataVersion=4]),
#"Filtered Rows" = Table.SelectRows(Source, each ([WorkItemType] = "Bug"))
in
#"Filtered Rows"

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.