Is there a way to get the category of a state in work items detail API, in Azure devops

mshashank 41 Reputation points
2021-05-21T11:13:45.59+00:00

When getting workitem details via API - https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/get%20work%20items%20batch?view=azure-devops-rest-6.0
I see there is a System.State which tells about the current state, but is customisable so we cannot decide if its in the final(Completed category) state or not. It seems we need to call another API to check the categories of the workitem type state, to check if its in final

Is there a way that when we call the workitem detail api, we also get the category of the state the workitem belongs to in the response body? This will help in reducing multiple API calls.

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

Accepted answer
  1. Leon Laude 85,726 Reputation points
    2021-05-21T11:16:22.717+00:00

    Hi @mshashank ,

    Please note that Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products.

    You may ask the experts in the dedicated Azure DevOps forum over here:
    https://developercommunity.visualstudio.com/report?space=21&entry=problem

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon


0 additional answers

Sort by: Most helpful