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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RevathyAnand
New Member

ADO Work items with direct links from OData Query

Hi All,

 

I am trying to fetch the Iteration Path of the Direct Child link work Item. I am able to get all the other fields like State, Title, Id. But Iteration is returning null. Please help me.

 

Though the query returns the right data for all the fileds except the Iteration which is loaded with null value.

 

 

 

 

 

 

 

let
   Source = OData.Feed("https://analytics.dev.azure.com/{name}/{name}/WorkItems?" & "$filter=WorkItemType eq 'Feature'" & "and State ne 'Removed'" & "and startswith(Area/AreaPath,
{areapath})" & "and Iteration/IterationPath eq {Iteration Path value}" & "&$select=WorkItemId,Title,WorkItemType,State,Priority,Severity,TagNames,AreaSK" & "&$expand=AssignedTo($select=UserName),Iteration($select=IterationPath),Area($select=AreaPath)," & "Links(" & "$filter=LinkTypeName eq 'Child'" & "and TargetWorkItem/WorkItemType eq 'User Story';" & "$select=LinkTypeName;" & "$expand=TargetWorkItem($select=WorkItemType,WorkItemId,Title,State,Iteration)" & ")", null, [Implementation="2.0", OmitValues=ODataOmitValues.Nulls, ODataVersion=4])
in
    Source

 

 

 

 

 

 

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @RevathyAnand ,

 

Hope these two links could help you.

Use OData queries to generate Power BI reports - Azure DevOps | Microsoft Learn

Work Items with Direct Links sample report - Azure DevOps | Microsoft Learn

 

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors