Hi everyone,
I have a workflow schema named NAFT with the ID 10011
.
I'm trying to retrieve all the statuses (e.g., To Do, In Progress, Done) that are associated with this workflow schema using the Jira REST API.
Does anyone know which API endpoint I should use to get the list of statuses specifically tied to this workflow schema?
Any help or example request would be appreciated!
Thanks in advance!
Welcome @Assad Rajab
You can't retrieve them directly, since there is no endpoint for it. Rather add a description for each project that is refferecing the project key and then using the /rest/api/2/workflows/search endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
I have not yet tried it, but it looks like it might be possible via:
https://yourinstance.atlassian.net/rest/api/3/workflows/search
GETs all the workflows of the instance. It does include the status ids used in all shown workflows (in the values, not in the "root statuses" section. The list would then have to be filtered, but that should be easy.
Afterwards, you can retrieve all the infos about a given status id by using
https://yourinstance.atlassian.net/rest/api/3/status/<STATUSID>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Thank you for the effort. However this is not what i was looking for. Apparently there is no direct way to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.