Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Aswini Radhakrishnan January 2, 2017

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.

2 answers

0 votes
Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2025

Hi @Aswini Radhakrishnan 

You'll need to do this programmatically, with your choice of scripting language, but this section of the REST API has what you are looking for https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-search-get

Get Workflows Paginated, allows you to get all the workflows in your instance and if you use an expand on projects, it will detail all projects connected to a workflow. 

If you only want to look at Workflows associated with multiple projects you could write a script that returns hits where a workflows projects array has multiple values. 

Screenshot_20250513-013315.png

I hope this helps. 

Aaron. 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2017

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 Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events