Set Workflow For Issue Type In Workflow Scheme

PUT {{baseUrl}}/rest/api/3/workflowscheme/:id/issuetype/:issueType

Sets the workflow for an issue type in a workflow scheme.

Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.

Permissions required: Administer Jira global permission.

Request Body

{"issueType"=>"<string>", "workflow"=>"<string>", "updateDraftIfNeeded"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:101010,&quot;name&quot;:&quot;Example workflow scheme&quot;,&quot;description&quot;:&quot;The description of the example workflow scheme.&quot;,&quot;defaultWorkflow&quot;:&quot;jira&quot;,&quot;issueTypeMappings&quot;:{&quot;10000&quot;:&quot;scrum workflow&quot;,&quot;10001&quot;:&quot;builds workflow&quot;},&quot;draft&quot;:false,&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010&quot;}