Svetlana
Svetlana

Reputation: 193

How to query work items by build or release in Azure DevOps Boards?

Azure DevOps allows to link work items with commits, build and releases. It works, and I can see all those links in a work item form. But is there a way to query work items using those links? I.e. query WIs associated with any or particular commit(s)/build(s)/release(s).

All I could find so far is to query WIs by count of external links and view a simple list of associated WIs from a particular build.

Upvotes: 2

Views: 2799

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31023

You can not query work items using Artifact Links in UI. But you can use Artifact Uri Query - Query API to query work items linked to a given list of artifact URI. For example:

POST https://dev.azure.com/{organization}/{project}/_apis/wit/artifacturiquery?api-version=5.1-preview.1

{
  "artifactUris": [
    "vstfs:///Build/Build/1566"
  ]
}

Upvotes: 1

Related Questions