{ "opencollection": "1.0.0", "info": { "name": "Atlassian Admin Account Workflow Scheme Drafts API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Workflow Scheme Drafts", "type": "folder" }, "items": [ { "info": { "name": "Atlassian Create Draft Workflow Scheme", "type": "http" }, "http": { "method": "POST", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/createdraft", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the active workflow scheme that the draft is created from." } ] }, "docs": "Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Get Draft Workflow Scheme", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the active workflow scheme that the draft was created from." } ] }, "docs": "Returns the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme. See [Configuring workflow schemes](https://confluence.atlassian.com/x/tohKLg) for more information.
Note that:

* Only active workflow schemes can have draft workflow schemes" }, { "info": { "name": "Atlassian Update Draft Workflow Scheme", "type": "http" }, "http": { "method": "PUT", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the active workflow scheme that the draft was created from." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a draft workflow scheme. If a draft workflow scheme does not exist for the active workflow scheme, then a draft is created. Note that an active workflow scheme can only have one draft workflow scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Delete Draft Workflow Scheme", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the active workflow scheme that the draft was created from." } ] }, "docs": "Deletes a draft workflow scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Get Draft Default Workflow", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/default", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." } ] }, "docs": "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](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Update Draft Default Workflow", "type": "http" }, "http": { "method": "PUT", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/default", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Sets the default workflow for a workflow scheme's draft.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Delete Draft Default Workflow", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/default", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." } ] }, "docs": "Resets the default workflow for a workflow scheme's draft. That is, the default workflow is set to Jira's system workflow (the *jira* workflow).

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Get Workflow For Issue Type In Draft Workflow Scheme", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/issuetype/:issueType", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "issueType", "value": "", "type": "path", "description": "The ID of the issue type." } ] }, "docs": "Returns the issue type-workflow mapping for an issue type in a workflow scheme's draft.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Set Workflow For Issue Type In Draft Workflow Scheme", "type": "http" }, "http": { "method": "PUT", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/issuetype/:issueType", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "issueType", "value": "", "type": "path", "description": "The ID of the issue type." } ], "body": { "type": "json", "data": "{}" } }, "docs": "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)." }, { "info": { "name": "Atlassian Delete Workflow For Issue Type In Draft Workflow Scheme", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/issuetype/:issueType", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "issueType", "value": "", "type": "path", "description": "The ID of the issue type." } ] }, "docs": "Deletes the issue type-workflow mapping for an issue type in a workflow scheme's draft.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Publish Draft Workflow Scheme", "type": "http" }, "http": { "method": "POST", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/publish", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "validateOnly", "value": "", "type": "query", "description": "Whether the request only performs a validation." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Publishes a draft workflow scheme.

Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status.

This operation is [asynchronous](#async). Follow the `location` link in the response to determine the status of the task and use [Get task](#api-rest-api-3-task-taskId-get) to obtain updates.

**[Permissions](#permissions) required:** *Administer Jira* [global permissi" }, { "info": { "name": "Atlassian Get Issue Types For Workflows In Draft Workflow Scheme", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/workflow", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "workflowName", "value": "", "type": "query", "description": "The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow." } ] }, "docs": "Returns the workflow-issue type mappings for a workflow scheme's draft.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Set Issue Types For Workflow In Workflow Scheme", "type": "http" }, "http": { "method": "PUT", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/workflow", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "workflowName", "value": "", "type": "query", "description": "The name of the workflow." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Sets the issue types for a workflow in a workflow scheme's draft. The workflow can also be set as the default workflow for the draft workflow scheme. Unmapped issues types are mapped to the default workflow.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." }, { "info": { "name": "Atlassian Delete Issue Types For Workflow In Draft Workflow Scheme", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/rest/api/3/workflowscheme/:id/draft/workflow", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the workflow scheme that the draft belongs to." }, { "name": "workflowName", "value": "", "type": "query", "description": "The name of the workflow." } ] }, "docs": "Deletes the workflow-issue type mapping for a workflow in a workflow scheme's draft.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg)." } ] } ], "bundled": true }