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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,011)