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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.