You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.