Hi Team,
Can someone please suggest the REST API to get all the workflow states that are present for a particular workflow?
After reviewing the API, there is an endpoint that you can expand and it will bring you the statuses of the workflow.
API Endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-search-get
Extending the information with the Expansion variable: https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion
Finally, this endpoint should bring you the statuses:
https://xyzxyz.atlassian.net/rest/api/3/workflow/search?expand=statuses
Hopefully this answers your question,
David
Hi @David Freitez ,
Thanks for the APIs but they are for jira cloud, We need the ones for Jira data center.
Do you have the APIs for Jira Data Center to get workflow states?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right, what version of server are using?, so I can update the links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the link of the API Documentation for Jira 9.4.0 on server:
https://docs.atlassian.com/software/jira/docs/api/REST/9.4.0/
As cloud, it also possible to extend the information with the Expansion variable:
I suggest you to try with the workflow endpoints and see if it is possible to use the expansion variable to retrieve the statuses.
I hope this sends you into the right direction.
Thanks,
David
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.