Dah Sra
Dah Sra

Reputation: 4425

How to retrive workitem IDs ? to use it in WorkItems list API

I need to get a list of workitems under my projects .Treid using this API call

https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?ids={ids}&api-version=5.0

it has a mandatory parameter as IDs so i need to find the IDs of workitems.

Can someone guide me on how to get the list of IDs ? or any APIs available ?

Upvotes: 0

Views: 118

Answers (1)

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32240

You can try to do this using WIQL instead. Here is an example. The response will contain a list of work items.

WIQL is quite power query language. You can achieve much more with it than with just plain REST API calls.

Upvotes: 2

Related Questions