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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
deepak_mhaskar
Frequent Visitor

Get Azure DevOps workitem links across projects

Hi Folks,

I am pulling the workitem data from Azure DevOps from a specific project.

That projects has some workitem links which has workitem links outside the projects (workitem link from other project in same organization)

 

I tried to use below Odata query, however it seems it only pulls links from current project:

 

 

let
    Source = OData.Feed("https://analytics.dev.azure.com/liox-teams/Production%20Incidents/_odata/v3.0-preview/WorkItems?$select=WorkItemId,Title,WorkItemType,State&$expand=Links($select=SourceWorkItemId,TargetWorkItemId,LinkTypeName;$expand=TargetWorkItem($select=WorkItemId,Title,State))", null, [Implementation="2.0"]),
    #"Expanded Links" = Table.ExpandTableColumn(Source, "Links", {"SourceWorkItemId", "TargetWorkItemId", "LinkTypeName", "TargetWorkItem"}, {"Links.SourceWorkItemId", "Links.TargetWorkItemId", "Links.LinkTypeName", "Links.TargetWorkItem"}),
    #"Expanded Links.TargetWorkItem" = Table.ExpandRecordColumn(#"Expanded Links", "Links.TargetWorkItem", {"WorkItemId", "Title", "State"}, {"Links.TargetWorkItem.WorkItemId", "Links.TargetWorkItem.Title", "Links.TargetWorkItem.State"}),
    #"Filtered Rows" = Table.SelectRows(#"Expanded Links.TargetWorkItem", each true)
    
in
    #"Filtered Rows"

 

 

 

Can you help with getting links outside the current project?

 

Any suggesttions / comments - Most welcome!

 

Regards,

Deepak

4 REPLIES 4
erjosito
Microsoft Employee
Microsoft Employee

I have the same question. Essentially, the remoted links are not part of the 'Links' table. Inspecting the ADO data with PowerShell it looks like the remote links are in a `url` field, but I can't access that field with the OData queries that are provided in the documentation above 😞

Hi, did anyone find a solution to this? I have the exact same problem. We want to query the status of all the related predecessors from an epic work item. These predecessor links can go to different projects as well as within the same as the epic. What we get in the 'Links' table are only relations within the same project however. Anyone has a solution on how to get the 'remote links' work items in a similar fashion?

v-eqin-msft
Community Support
Community Support

Hi @deepak_mhaskar ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @deepak_mhaskar ,

 

As the official document said, The Analytics service and Power BI reports support creation of reports that span two or more projects. 

 

Please refer to:

Create a Power BI report with an OData Query - Azure DevOps | Microsoft Docs

 

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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