How to get the list of duplicate bugs linked to the primary bug in Azure devops?
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):
You could interact with that feed via a Personal Access Token and using a HTTP action in Power Automate:
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')}
The output would be the links for one specific work item (in this example bug #97)
User | Count |
---|---|
27 | |
16 | |
15 | |
12 | |
11 |
User | Count |
---|---|
43 | |
30 | |
28 | |
24 | |
23 |