Skip to end of banner
Go to start of banner

How to associate a workflow scheme using Jira Command Line Interface (CLI)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Current »

This article explains how to associate a workflow to a project using the Jira Command Line Interface app.

Instructions

Use the associateWorkflow action to associate a workflow to the workflow scheme using name and workflowScheme as required parameters.

  • name: Name of the workflow
  • workflowSchemeWorkflow scheme name or id. Use blank for default scheme. 


  1. Execute the CLI command:

    --action associateWorkflow --name "Associate_Workflow_1" --workflowScheme "Associate_Workflow_Scheme_1"


    For this example, we had created a new workflow named Associate_Workflow_1 and workflow schema named Associate_Workflow_Scheme_1 as shown below:







  2.  The following output appears upon execution of the above cli command:

  • Output on the terminal:

    Workflow 'Associate_Workflow_1' associated to 'Associate_Workflow_Scheme_1'.
  • Output in Jira:


  • If you are creating new workflow and workflow scheme on global level, they can be viewed in inactive workflows and inactive workflow schemes respectively.
  • You will be able to associate inactive Workflow scheme to inactive workflow.
  • You will be able to associate inactive Workflow scheme to active workflow.
  • It is recommended to test this scenario in a test environment before implementing it in production.
  • No labels