Rest Api to get the list of project details that shares common workflow

Hi team,

We would like to get the list of projects that shares a common workflow using a REST API.

For example., if I provide the workflow name and if it shared by 4 projects in jira, we need the project count and those project information at least the project names through rest api.

Thanks in Advance.

1 answer

0 votes

You'll need to do a lot of the work on that yourself.

You can grab a list of workflows via REST, but JIRA thinks of this as a simple list of all of them, for projects to use as a project sees fit.  It's focussed on the issues and projects - "show me where workflows are used" is not the usual question, it's "what workflow is used for this issue".

I'm not actually sure you can actually get all the information you need over REST.  You need to fetch the workflow scheme for each project, and then go over it to see which workflows are used by each project, but I don't remember (and can't find at a quick glance) any REST call which returns the project:workflow-scheme mapping.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

287 views 0 12
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot