Skip to content

jira create-workflow

Creates a workflow. If no transitional rules are specified the default system transition rules are used.

Description

Creates a workflow. If no transitional rules are specified the default system transition rules are used.

Synopsis

jira create-workflow
    --site <site>
    --workflow <workflow>
    [--description <description>]
    --name <name>
    --from <from>
    --to <to>
    --type <type>
    [--statuses <statuses>]

Arguments

site - (string)

    
     Example: --site "site-1"
     Default: localhost:8081      Attributes: required

workflow - (string)

     Name of workflow
     Example: --workflow "workflow-1"
     Default: _None_      Attributes: required

description - (string)

     Description of the workflow
     Example: --description "description-1"
     Default: _None_      Attributes: optional

name - (string)

     name for transitions
     Example: --name "name-1"
     Default: _None_      Attributes: required, multiple allowed

from - (string)

     from for transitions
     Example: --from "from-1"
     Default: _None_      Attributes: required, multiple allowed

to - (string)

     to for transitions
     Example: --to "to-1"
     Default: _None_      Attributes: required, multiple allowed

type - (string)

     type for transitions
     Example: --type "type-1"
     Default: _None_      Attributes: required, multiple allowed

statuses - (string)

     Statuses made by the workflow
     Example: --statuses "statuses-1"
     Default: _None_      Attributes: optional, multiple allowed

Examples

jira create-workflow --workflow "workflow-1" --description "description-1" --name "name-1" --from "from-1" --to "to-1" --type "type-1" --statuses "statuses-1"

Access Control

To use this command, you need access to the following:

Field Value
Action "create"
Service Type "jira"
Service Instance
Namespace
Object Type "workflow"
Object ID

Please see Access Control for details.