How can I get the workitems of a particular ADO team via rest API

Bhargavi Chanaboina 0 Reputation points
2023-06-20T05:54:03.26+00:00

I want to get the list of workitems of a particular team.
I have used below WIQL API for the requirement

POST https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql?api-version=7.0

The API is expecting query in the body. So I passed the query with iteration filter in it.

{
    "query": "Select [System.Id], [System.Title], [System.State] From WorkItems WHERE [System.IterationPath] = 'test\Sprint 19' AND [System.ChangedDate] >= '2023-01-01T00:00:00.0000000'"
}

When I use the above query for two different teams and with the same iteration path, it is giving the same response.

Could you please help me understand how I can differentiate the workItems of different teams?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,969 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.