cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MaheshBohara
Microsoft
Microsoft

Duplicate bugs in Azure devops

How to get the list of duplicate bugs linked to the primary bug in Azure devops?

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @MaheshBohara,

 

One approach would be to use the Extended Analytics with OData. In that feed there is an option to query for non-hierarchical links (for example duplicates):

https://docs.microsoft.com/en-us/azure/devops/report/extend-analytics/work-item-links?view=azure-dev...

 

You could interact with that feed via a Personal Access Token and using a HTTP action in Power Automate:

https://docs.microsoft.com/en-us/azure/devops/report/powerbi/client-authentication-options?view=azur...

 

Below is an example how you could configure that HTTP action.

https://analytics.dev.azure.com/@{variables('Organisation')}/@{variables('Project')}/_odata/v2.0/workItems?$select=WorkItemId,Title,WorkItemType,State&$expand=Links($select=SourceWorkItemId,TargetWorkItemId,LinkTypeName)&$filter=WorkItemId eq @{variables('WorkItemId')}

 

consumeodata_azuredevops.png

 

The output would be the links for one specific work item (in this example bug #97)

 

outputs_odatafeed.png

Thank you @Expiscornovus  !

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,477)