Forum Discussion
what is the page size limit for Retrieve Work items associated with iteration path
The Azure DevOps WIQL API typically limits responses to 200 work items per page. If the response exceeds this, it uses pagination with a continuationToken to fetch the next page.
Handling Pagination -
Process the first set of work items.
Use the continuationToken to fetch subsequent pages.
Reference URL: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql?view=azure-devops-rest-7.1
- surendra-pDec 03, 2024Copper Contributor
balasubramanim when and where the continuationToken is visible and how to read the continuationToken from the response
- balasubramanimDec 03, 2024Iron Contributor
The continuationToken is provided in the response headers when using the Azure DevOps WIQL API, specifically when the query result exceeds the 200 work items per page limit. It is not part of the response body but is included as a header.
POST https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql?api-version=7.1- surendra-pDec 04, 2024Copper Contributor
I am using API for retrieving the project level iteration Work items
POST https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql?api-version=7.1
{
"query": "Select [System.id] From WorkItems Where [System.IterationPath] under 'Test demo Project1\\release1' AND [System.WorkItemType] IN ('task','epic','user story')"
}
response :
{
"queryType": "flat",
"queryResultType": "workItem",
"asOf": "2024-12-04T08:55:56Z",
"columns": [
{
"referenceName": "System.Id",
"name": "ID",
"url": "https://dev.azure.com/surendrap0512/_apis/wit/fields/System.Id"
}
],
"workItems": [
{
"id": 82,
"url": "https://dev.azure.com/surendrap0512/5578bdfc-1b4a-44f6-bfc8-7eb4b8f470dd/_apis/wit/workItems/82"
},
around 257 Work items in the List
]
}
API is fetching more than 250 list of work items , i am not sure about what is the exact limit of this api and why continuationToken is not visible