As far as I understood, workflows can be assigned to issueTypes of specific projects, but how can the workflow, or rather its name, be retrieved?
Is it even possible using the REST API?
If so, does it require admin permissions?
What I've tried so far:
GET /rest/api/2/project/{projectIdOrKey}/statuses => doesn't return the workflow name, just the statuses used within the workflow
GET /rest/api/2/workflow => returns all workflows instead of just the one I'm looking for and requires admin permissions and I'd rather not use them (at the moment, at least)
GET /rest/projectconfig/1/workflowscheme/{projectKey} => returns a 404 for some reason
Hello Ahmed,
Welcome to Atlassian community.
On JIRA Cloud API Documentation, we have the following Calls:
1 - Get workflow for issue type in workflow scheme
Returns the issue type-workflow mapping for an issue type in a workflow scheme:
GET /rest/api/3/workflowscheme/{id}/issuetype/{issueType}
2 - Get workflow for issue type in draft workflow scheme
Returns the issue type-workflow mapping for an issue type in a workflow scheme's draft.
GET /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
Can you adapt it for your JIRA Server instance and check if you are able to get the information you are looking for?
For more details about it, check the documentation below:
Please, let us know if this information helps.
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.