updateDraftIfNeeded
to true
in the request body and a draft workflow scheme is created or updated with the new workflow-issue types mappings. The draft workflow scheme can be published in Jira.curl --location --request PUT 'http://jira.local:8080/jira/rest//rest/api/3/workflowscheme//workflow?workflowName=' \
--header 'Content-Type: application/json' \
--data-raw '{
"issueTypes": [
"10000"
],
"updateDraftIfNeeded": true,
"workflow": "jira"
}'
{"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"}