Returns the default workflow for a workflow scheme's draft. The default workflow is the workflow that is assigned any issue types that have not been mapped to any other workflow. The default workflow has All Unassigned Issue Types listed in its issue types for the workflow scheme in Jira.Permissions required:Administer Jiraglobal permission.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'http://jira.local:8080/jira/rest//rest/api/3/workflowscheme//draft/default'
Response Response Example
200 - Success
{"workflow":"jira"}
Request
Path Params
id
integerÂ
required
The ID of the workflow scheme that the draft belongs to.
Responses
🟢200Returned if the request is successful.
application/json
Body
Details about the default workflow.
updateDraftIfNeeded
booleanÂ
optional
Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow. Defaults to false.
workflow
stringÂ
required
The name of the workflow to set as the default workflow.
🟠401Returned if the authentication credentials are incorrect or missing.
🟠403Returned if the user does not have the necessary permission..
🟠404Returned if any of the following is true:
* The workflow scheme is not found.
* The workflow scheme does not have a draft.