provider Workflow scheme drafts PUT /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
@utdk/jira /rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
Set workflow for issue type in draft workflow scheme
Sets the workflow for an issue type in a workflow scheme's draft. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
id path required
The ID of the workflow scheme that the draft belongs to.
integer
issueType path required
The ID of the issue type.
string

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

setworkflowschemedraftissuetype
PUT/rest/api/3/workflowscheme/{id}/draft/issuetype/{issueType}
Sets the workflow for an issue type in a workflow scheme's draft. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The ID of the workflow scheme that the draft belongs to.

required

The ID of the issue type.

Input

The ID of the issue type. Not required if updating the issue type-workflow mapping.

Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to `false`. Only applicable when updating the workflow-issue types mapping.

The name of the workflow.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.setworkflowschemedraftissuetype()