Is there a way to get the workflow name for an issueType in a project using the JIRA REST API?

ahmed bajra March 28, 2019

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

1 answer

1 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2019

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:

JIRA REST API Reference

Please, let us know if this information helps.

A S March 26, 2020

test

A S March 26, 2020

Hi @Petter Gonçalves 

I tried to comment but it failed, instead I used a screenshot below

12.png

Suggest an answer

Log in or Sign up to answer