The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to reproduce workflow diagram myself via REST APIs

Carlos H
April 29, 2024

I am running Jira Server v8.13.25.

Screenshot 2024-04-26 at 9.20.11 AM.png

I want to know how I can obtain this workflow data programmatically via REST API. https://docs.atlassian.com/software/jira/docs/api/REST/8.13.0/#api/2/issue-getTransitions(/rest/api/2/issue/{issueIdOrKey}/transitions) is close to what I need. It shows me what transitions are available and any rules or conditions set. Unfortunately, this doesn't give me the complete picture I need. Given this example, if the issue is currently in "Open" and I were to call the API, I only see one entry in the response for "In Progress". I don't see "Done" listed. Likely because "Done" isn't a permissible transition until the issue has been moved to "In Progress".

 

So what API exists that allows me to look at all the transitions available? Essentially what I'd like to accomplish here is the ability to reproduce this workflow diagram as it's presented in jira for myself via the REST APIs.

 

Again, this is for Jira Server, not for Jira Cloud.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.