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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,253)