Reputation: 307
How can use ADO Rest API to query ADO work item based on Title of a work item?
I check the API doc, but I don't see a way where I can use a work item title based a given string. https://learn.microsoft.com/en-us/rest/api/azure/devops/search/work%20item%20search%20results/fetch%20work%20item%20search%20results?view=azure-devops-rest-6.1#uri-parameters
Upvotes: 0
Views: 2018
Reputation: 5242
You can use the REST API Wiql - Query By Wiql.
POST https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql?api-version=6.1-preview.2
Here is an example of the request body:
{
"query": "Select [System.Id] From WorkItems Where [System.Title] CONTAINS '{your specific test}'"
}
Upvotes: 1