Here I have a simple workflow associated with my issue.
I want to know how I can obtain this workflow data programmatically via REST API. https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-transitions-get (/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.
Yup, that's it. More specifically, the following URL query gives me what I need https://{subdomain}.atlassian.net/rest/api/2/workflow/search?expand=transitions,statuses&workflowName={workflowName}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Michael Wohlgemuthdo you know how to accomplish this same request, but with Jira Server? I need to accomplish this on that type of instance as well.
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.
In order to call `GET /rest/api/2/workflow/{id}/properties`, I need the id. But when I call `GET /rest/api/2/workflow`, it doesn't give me any ids.
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.