curl --location --request POST 'http://jira.local:8080/jira/rest//rest/api/3/workflowscheme' \
--header 'Content-Type: application/json' \
--data-raw '{
"defaultWorkflow": "jira",
"description": "The description of the example workflow scheme.",
"issueTypeMappings": {
"10000": "scrum workflow",
"10001": "builds workflow"
},
"name": "Example workflow scheme"
}'
{"id":101010,"name":"Example workflow scheme","description":"The description of the example workflow scheme.","defaultWorkflow":"jira","issueTypeMappings":{"10000":"scrum workflow","10001":"builds workflow"},"draft":false,"self":"https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"}
defaultWorkflow
is not specified when creating a workflow scheme, it is set to Jira Workflow (jira).updateDraftIfNeeded
set to true
: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.updateDraftIfNeeded
set to false
: An error is returned, as active workflow schemes cannot be updated.updateDraftIfNeeded
set to true
: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.false
.defaultWorkflow
is not specified when creating a workflow scheme, it is set to Jira Workflow (jira).updateDraftIfNeeded
set to true
: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.updateDraftIfNeeded
set to false
: An error is returned, as active workflow schemes cannot be updated.updateDraftIfNeeded
set to true
: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.false
.