question

mshashank-9598 avatar image
0 Votes"
mshashank-9598 asked mshashank-9598 commented

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

When getting workitem details via API - https://docs.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-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered mshashank-9598 commented

Hi @mshashank-9598,

Please note that Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://docs.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

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Gotit Leon, I was redirected here from Azure Devops Documentation page.
I will add towards the second link now, thanks

0 Votes 0 ·

No worries, you're welcome.

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

0 Votes 0 ·