Search code examples
tfsazure-devopstfs-workitem

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 ?


Solution

  • 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.