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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,751)