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
Dual Super User
Dual 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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,993)