Workflows are not necessarily sequential in Jira, but can also contain cycles, for example. Therefore "before" and "after" are not well defined.
If you know that there is a well-defined sequence of the status in your specific case, then get all statuses and all transitions and reconstruct the sequence based on those.
Ah ok, so for a given project I would need to find the workflow and then use logic to work it out but like you say this would only work in the scenarios where the workflows are sequential (or at the very least the steps being compared are).
I've just had a look at the API you linked but am struggling to see how you get from the project to a defined set of workflow steps?
I am not familiar with that part of the REST API, but this second question should also be revised.
There is no 1:1 mapping between projects and workflows. Workflows are more tied to project/issue-type pairs.
Something like this.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs