Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.name: Name of the workflow.
  1. For this example, created a new workflow named Associate_Workflow_1 and workflow schema named Associate_Workflow_Scheme_1 as shown below:



    Note

    If you are creating new workflow and workflow scheme on global level, they can be viewed in Inactive inactive workflows and Inactive Workflow inactive workflow schemes respectively.


  2. Execute the following CLI command:

    Code Block
    themeMidnight
    --action associateWorkflow --name "Associate_Workflow_1" --workflowScheme "Associate_Workflow_Scheme_1"


  3. If there are no errors, the following output appears after the upon execution of the above command:

  • Output on the terminal:

    Code Block
    themeMidnight
    Workflow 'Associate_Workflow_1' associated to 'Associate_Workflow_Scheme_1'.


  • Output on the in Jira:


Info
It is recommended to test this scenario in a test environment before implementing it in production.

...