Nickname0222022022
Nickname0222022022

Reputation: 616

Azure DevOps - Wiql - Query By Id - is there a skip parameter

I'm trying to find a possibility to skip X first elements returned by query.
Link to API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query%20by%20id?view=azure-devops-rest-6.0.
Just as with Jira you use maxResults with startAt to create paging.
In AzureDevops Services I see option $top but I do not see option $skip (nor it works).

I can limit my result, but can't page through it.
Is there a way to do it?

Upvotes: 1

Views: 1222

Answers (2)

user17422690
user17422690

Reputation: 11

While the endpoint does not provide paging itself, I believe you can use WIQL for paging.

  • Sort by ID
  • Add a constant $top
  • if page > 1, add a where ID < last processed ID

Upvotes: 1

Jane Ma-MSFT
Jane Ma-MSFT

Reputation: 5242

As of this time, however, the REST API you are using doesn't supported paging.

If a REST API supports paging, there will be skip or continuationtoken parameters in the optional parameters of the document. As shown below:

enter image description here enter image description here

Generally, Paging is supported only by the REST API that gets the lists.

Upvotes: 1

Related Questions