Change Workflow Scheme for multiple Jira Projects

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

Summary

Changing the workflow scheme for multiple projects at once in Jira Cloud requires careful planning, as there is no native bulk change feature for this specific action in the Jira UI. However, this can be efficiently managed using Jira’s REST API

Prerequisite

Solution

Let's assume, you want to switch between Workflow Scheme A to Scheme B in several projects at once, follow the steps below:

Step 1: Identify the Workflow Scheme IDs:

This will list all workflow schemes in your Jira instance. Note down the IDs for Scheme A and Scheme B.


Step 2: Get a List of Projects Using Scheme A:

Filter the projects to identify which ones are using Workflow Scheme A.


Step 3: Change Workflow Scheme for Each Project:

  • For each project identified in the previous step, use the following API call to update the workflow scheme to Scheme B:
  • PUT /rest/api/2/workflowscheme/project - Assign workflow scheme to project
  • Example payload:
    • payload = ( { "projectId": "10001", "workflowSchemeId": "10032" } )


Step 4: Automate this process using a script to iterate through the list of projects and update them accordingly.

The above process can be automated using some python scripting. Sample scripts are provided in the Jira REST API documentation

Using the Jira REST API is the most efficient way to change the workflow scheme for multiple projects at once, especially if you have a large number of projects. For smaller numbers, manually updating through the Jira UI is feasible. Ensure you have the necessary permissions and API tokens before proceeding with the API method.


Last modified on Jul 29, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.