0
votes

I'm trying to execute a POST request with Azure DevOps on my WorkItems and get all the Others Tags on the WorkItems . This is my query

https://dev.azure.com/{orgenezation}/{project}/{Team}/_apis/wit/wiql?api-version=5.1 and the Body is

{
  "query": "select [System.Id],[System.Description], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] from WorkItems where [System.TeamProject] = @project and [System.Tags] contains 'Automation' and [System.Tags] contains 'board1'"

}

from some reason I do not get the right data and have missing data from the result , like Description,Tags.

...
  "workItems": [
        {
            "id": 6441,
            "url": "https://dev.azure.com/{org}/eb25462e-351c-4364-a55a-e9e6029bffba/_apis/wit/workItems/6441"
        },
        {
            "id": 6442,
            "url": "https://dev.azure.com/{org}/eb25462e-351c-4364-a55a-e9e6029bffba/_apis/wit/workItems/6442"
        },
...

what should I do with this issue?

1
Currently ,this is as designed . If Shamrai Aleksander's answer is helpful to you ,you could consider to accept it . Also you could add your request for this issue on our UserVoice site . Sorry for the inconvenience.Hugh Lin

1 Answers

1
votes

It works as designed. It returns only ids and urls. Here you can find the example with request and result: Wiql - Query By Wiql. Then you can use Work Items - Get Work Items Batch and specify all ids from your wiql result. Additionally, you can specify only needed fields: Get list of work items for specific fields.