Skip to content

Atlassian: Workflow schemes schemas

30 Atlassian schemas with complete fields and constraints.

← Workflow schemes operations · All schemas

Bulk get workflow schemes — request body — body

FieldTypePresenceDescription and constraints
$objectRootThe workflow scheme read request body.
Additional keys: not allowed
projectIdsJSONOptional
projectIds (anyOf 1)arrayAlternativeThe list of project IDs to query.
projectIds (anyOf 1)[]JSONEach item
projectIds (anyOf 1)[] (anyOf 1)stringAlternativeThe list of project IDs to query.
projectIds (anyOf 1)[] (anyOf 2)nullAlternative
projectIds (anyOf 2)nullAlternative
workflowSchemeIdsJSONOptional
workflowSchemeIds (anyOf 1)arrayAlternativeThe list of workflow scheme IDs to query.
workflowSchemeIds (anyOf 1)[]JSONEach item
workflowSchemeIds (anyOf 1)[] (anyOf 1)stringAlternativeThe list of workflow scheme IDs to query.
workflowSchemeIds (anyOf 1)[] (anyOf 2)nullAlternative
workflowSchemeIds (anyOf 2)nullAlternative

Bulk get workflow schemes — response body — item

FieldTypePresenceDescription and constraints
$objectRoot
defaultWorkflowJSONOptional
defaultWorkflow (anyOf 1)ModelAlternativeExpand Bulk get workflow schemes — response body — item default Workflow Workflow metadata and usage detail
defaultWorkflow (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)JSONAlternative
description (anyOf 1) (anyOf 1)stringAlternativeThe description of the workflow scheme.
description (anyOf 1) (anyOf 2)nullAlternative
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the workflow scheme.
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the workflow scheme.
name (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)ModelAlternativeExpand Bulk get workflow schemes — response body — item scope The scope of the workflow
scope (anyOf 2)nullAlternative
taskIdJSONOptional
taskId (anyOf 1)JSONAlternative
taskId (anyOf 1) (anyOf 1)stringAlternativeIndicates if there's an [asynchronous task](#async-operations) for this workflow scheme.
taskId (anyOf 1) (anyOf 2)nullAlternative
taskId (anyOf 2)nullAlternative
versionJSONOptional
version (anyOf 1)ModelAlternativeExpand Bulk get workflow schemes — response body — item version id, version Number
version (anyOf 2)nullAlternative
workflowsForIssueTypesJSONOptional
workflowsForIssueTypes (anyOf 1)arrayAlternativeMappings from workflows to issue types.
workflowsForIssueTypes (anyOf 1)[]ModelEach itemExpand Bulk get workflow schemes — response body — item workflows For Issue Types Mappings from workflows to issue types item
workflowsForIssueTypes (anyOf 2)nullAlternative

Referenced models: Bulk get workflow schemes — response body — item version id, version Number, Bulk get workflow schemes — response body — item workflows For Issue Types Mappings from workflows to issue types item, Bulk get workflow schemes — response body — item default Workflow Workflow metadata and usage detail, Bulk get workflow schemes — response body — item scope The scope of the workflow

Bulk get workflow schemes — response body — item default Workflow Workflow metadata and usage detail

FieldTypePresenceDescription and constraints
$objectRootWorkflow metadata and usage detail.
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the workflow.
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the workflow.
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the workflow.
name (anyOf 2)nullAlternative
versionJSONOptional
version (anyOf 1)ModelAlternativeExpand Bulk get workflow schemes — response body — item version id, version Number
version (anyOf 2)nullAlternative

Referenced models: Bulk get workflow schemes — response body — item version id, version Number

Bulk get workflow schemes — response body — item scope The scope of the workflow

FieldTypePresenceDescription and constraints
$objectRootThe scope of the workflow.
projectJSONOptional
project (anyOf 1)ModelAlternativeExpand Bulk get statuses — response body — item scope The scope of the status project value
project (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe scope of the workflow. `GLOBAL` for company-managed projects and `PROJECT` for team-managed projects.
Known values: PROJECT, GLOBAL
type (anyOf 2)nullAlternative

Referenced models: Bulk get statuses — response body — item scope The scope of the status project value

Bulk get workflow schemes — response body — item version id, version Number

FieldTypePresenceDescription and constraints
$objectRootThe current version details of this workflow scheme.
idJSONOptional
id (anyOf 1)stringAlternativeThe version UUID.
id (anyOf 2)nullAlternative
versionNumberJSONOptional
versionNumber (anyOf 1)JSONAlternative
versionNumber (anyOf 1) (anyOf 1)integerAlternativeThe version number.
Format: int64
versionNumber (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
versionNumber (anyOf 2)nullAlternative

Bulk get workflow schemes — response body — item workflows For Issue Types Mappings from workflows to issue types item

FieldTypePresenceDescription and constraints
$objectRootThe workflow metadata and issue type IDs which use this workflow.
issueTypeIdsJSONOptional
issueTypeIds (anyOf 1)arrayAlternativeThe list of issue type IDs for the mapping.
issueTypeIds (anyOf 1)[]stringEach itemThe list of issue type IDs for the mapping.
issueTypeIds (anyOf 2)nullAlternative
workflowJSONOptional
workflow (anyOf 1)ModelAlternativeExpand Bulk get workflow schemes — response body — item default Workflow Workflow metadata and usage detail
workflow (anyOf 2)nullAlternative

Referenced models: Bulk get workflow schemes — response body — item default Workflow Workflow metadata and usage detail

Create workflow scheme — request body — body

FieldTypePresenceDescription and constraints
$objectRootDetails about a workflow scheme.
Additional keys: not allowed
defaultWorkflowstringOptionalThe name of the default workflow for the workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira. If `defaultWorkflow` is not specified when creating a workflow scheme, it is set to *Jira Workflow (jira)*.
descriptionstringOptionalThe description of the workflow scheme.
draftbooleanOptionalWhether the workflow scheme is a draft or not.
Read only: true
idintegerOptionalThe ID of the workflow scheme.
Format: int64
Read only: true
issueTypeMappingsobjectOptionalThe issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
Additional keys: see wildcard field
issueTypeMappings.*stringAdditional keys
issueTypesobjectOptionalThe issue types available in Jira.
Read only: true
Additional keys: see wildcard field
issueTypes.*ModelAdditional keysExpand Create workflow scheme — request body — body issue Types value
lastModifiedstringOptionalThe date-time that the draft workflow scheme was last modified. A modification is a change to the issue type-project mappings only. This property does not apply to non-draft workflows.
Read only: true
lastModifiedUserModelOptionalExpand Assign issue — request body — body
The user that last modified the draft workflow scheme. A modification is a change to the issue type-project mappings only. This property does not apply to non-draft workflows.
Read only: true
namestringOptionalThe name of the workflow scheme. The name must be unique. The maximum length is 255 characters. Required when creating a workflow scheme.
originalDefaultWorkflowstringOptionalFor draft workflow schemes, this property is the name of the default workflow for the original workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira.
Read only: true
originalIssueTypeMappingsobjectOptionalFor draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
Read only: true
Additional keys: see wildcard field
originalIssueTypeMappings.*stringAdditional keysRead only: true
selfstringOptionalFormat: uri
Read only: true
updateDraftIfNeededbooleanOptionalWhether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:

* Update an active workflow scheme with `updateDraftIfNeeded` set to `true`: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
* Update an active workflow scheme with `updateDraftIfNeeded` set to `false`: An error is returned, as active workflow schemes cannot be updated.
* Update an inactive workflow scheme with `updateDraftIfNeeded` set to `true`: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.

Defaults to `false`.

Referenced models: Create workflow scheme — request body — body issue Types value, Assign issue — request body — body

Create workflow scheme — request body — body issue Types value

FieldTypePresenceDescription and constraints
$objectRootDetails about an issue type.
Additional keys: not allowed
avatarIdintegerOptionalThe ID of the issue type's avatar.
Format: int64
Read only: true
descriptionstringOptionalThe description of the issue type.
Read only: true
entityIdstringOptionalUnique ID for next-gen projects.
Format: uuid
Read only: true
hierarchyLevelintegerOptionalHierarchy level of the issue type.
Format: int32
Read only: true
iconUrlstringOptionalThe URL of the issue type's avatar.
Read only: true
idstringOptionalThe ID of the issue type.
Read only: true
namestringOptionalThe name of the issue type.
Read only: true
scopeModelOptionalExpand Create permission scheme — request body — body scope
Details of the next-gen projects the issue type is available in.
Read only: true
selfstringOptionalThe URL of these issue type details.
Read only: true
subtaskbooleanOptionalWhether this issue type is used to create subtasks.
Read only: true

Referenced models: Create permission scheme — request body — body scope

Get all workflow schemes — response body

FieldTypePresenceDescription and constraints
$objectRootA page of items.
isLastJSONOptional
isLast (anyOf 1)booleanAlternativeWhether this is the last page.
Read only: true
isLast (anyOf 2)nullAlternative
maxResultsJSONOptional
maxResults (anyOf 1)JSONAlternative
maxResults (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of items that could be returned.
Format: int32
Read only: true
maxResults (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
maxResults (anyOf 2)nullAlternative
nextPageJSONOptional
nextPage (anyOf 1)stringAlternativeIf there is another page of results, the URL of the next page.
Format: uri
Read only: true
nextPage (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL of the page.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
startAtJSONOptional
startAt (anyOf 1)JSONAlternative
startAt (anyOf 1) (anyOf 1)integerAlternativeThe index of the first item returned.
Format: int64
Read only: true
startAt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
startAt (anyOf 2)nullAlternative
totalJSONOptional
total (anyOf 1)JSONAlternative
total (anyOf 1) (anyOf 1)integerAlternativeThe number of items returned.
Format: int64
Read only: true
total (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total (anyOf 2)nullAlternative
valuesJSONOptional
values (anyOf 1)arrayAlternativeThe list of items.
Read only: true
values (anyOf 1)[]ModelEach itemExpand Get workflow scheme — response body
values (anyOf 2)nullAlternative

Referenced models: Get workflow scheme — response body

Get default workflow — response body

FieldTypePresenceDescription and constraints
$objectRootDetails about the default workflow.
updateDraftIfNeededJSONOptional
updateDraftIfNeeded (anyOf 1)booleanAlternativeWhether 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`.
updateDraftIfNeeded (anyOf 2)nullAlternative
workflowJSONOptional
workflow (anyOf 1)stringAlternativeThe name of the workflow to set as the default workflow.
workflow (anyOf 2)nullAlternative

Get issue types for workflows in workflow scheme — response body

FieldTypePresenceDescription and constraints
$objectRootDetails about the mapping between issue types and a workflow.
defaultMappingJSONOptional
defaultMapping (anyOf 1)booleanAlternativeWhether the workflow is the default workflow for the workflow scheme.
defaultMapping (anyOf 2)nullAlternative
issueTypesJSONOptional
issueTypes (anyOf 1)arrayAlternativeThe list of issue type IDs.
issueTypes (anyOf 1)[]stringEach item
issueTypes (anyOf 2)nullAlternative
updateDraftIfNeededJSONOptional
updateDraftIfNeeded (anyOf 1)booleanAlternativeWhether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new workflow-issue types mapping. Defaults to `false`.
updateDraftIfNeeded (anyOf 2)nullAlternative
workflowJSONOptional
workflow (anyOf 1)stringAlternativeThe name of the workflow. Optional if updating the workflow-issue types mapping.
workflow (anyOf 2)nullAlternative

Get projects which are using a given workflow scheme — response body

FieldTypePresenceDescription and constraints
$objectRootProjects using the workflow scheme.
projectsJSONOptional
projects (anyOf 1)ModelAlternativeExpand Get projects using a given workflow — response body — projects A page of projects
projects (anyOf 2)nullAlternative
workflowSchemeIdJSONOptional
workflowSchemeId (anyOf 1)stringAlternativeThe workflow scheme ID.
workflowSchemeId (anyOf 2)nullAlternative

Referenced models: Get projects using a given workflow — response body — projects A page of projects

Get required status mappings for workflow scheme update — request body — body

FieldTypePresenceDescription and constraints
$objectRootThe request payload to get the required mappings for updating a workflow scheme.
Additional keys: not allowed
defaultWorkflowIdJSONOptional
defaultWorkflowId (anyOf 1)stringAlternativeThe ID of the new default workflow for this workflow scheme. Only used in global-scoped workflow schemes. If it isn't specified, is set to *Jira Workflow (jira)*.
defaultWorkflowId (anyOf 2)nullAlternative
idstringRequired within parentThe ID of the workflow scheme.
workflowsForIssueTypesarrayRequired within parentThe new workflow to issue type mappings for this workflow scheme.
workflowsForIssueTypes[]ModelEach itemExpand Update workflow scheme — request body — body workflows For Issue Types item

Referenced models: Update workflow scheme — request body — body workflows For Issue Types item

Get required status mappings for workflow scheme update — response body

FieldTypePresenceDescription and constraints
$objectRoot
statusMappingsByIssueTypesJSONOptional
statusMappingsByIssueTypes (anyOf 1)arrayAlternativeThe list of required status mappings by issue type.
Unique items: true
statusMappingsByIssueTypes (anyOf 1)[]ModelEach itemExpand Get required status mappings for workflow scheme update — response body — status Mappings By Issue Types The list of required status mappings by issue type item
statusMappingsByIssueTypes (anyOf 2)nullAlternative
statusMappingsByWorkflowsJSONOptional
statusMappingsByWorkflows (anyOf 1)arrayAlternativeThe list of required status mappings by workflow.
Unique items: true
statusMappingsByWorkflows (anyOf 1)[]ModelEach itemExpand Get required status mappings for workflow scheme update — response body — status Mappings By Workflows The list of required status mappings by workflow item
statusMappingsByWorkflows (anyOf 2)nullAlternative
statusesJSONOptional
statuses (anyOf 1)arrayAlternativeThe details of the statuses in the associated workflows.
Unique items: true
statuses (anyOf 1)[]ModelEach itemExpand Get required status mappings for workflow scheme update — response body — statuses array item
statuses (anyOf 2)nullAlternative
statusesPerWorkflowJSONOptional
statusesPerWorkflow (anyOf 1)arrayAlternativeThe statuses associated with each workflow.
Unique items: true
statusesPerWorkflow (anyOf 1)[]ModelEach itemExpand Get required status mappings for workflow scheme update — response body — statuses Per Workflow The statuses associated with each workflow item
statusesPerWorkflow (anyOf 2)nullAlternative

Referenced models: Get required status mappings for workflow scheme update — response body — status Mappings By Issue Types The list of required status mappings by issue type item, Get required status mappings for workflow scheme update — response body — status Mappings By Workflows The list of required status mappings by workflow item, Get required status mappings for workflow scheme update — response body — statuses array item, Get required status mappings for workflow scheme update — response body — statuses Per Workflow The statuses associated with each workflow item

Get required status mappings for workflow scheme update — response body — status Mappings By Issue Types The list of required status mappings by issue type item

FieldTypePresenceDescription and constraints
$objectRootThe list of required status mappings by issue type.
issueTypeIdJSONOptional
issueTypeId (anyOf 1)stringAlternativeThe ID of the issue type.
issueTypeId (anyOf 2)nullAlternative
statusIdsJSONOptional
statusIds (anyOf 1)arrayAlternativeThe status IDs requiring mapping.
Unique items: true
statusIds (anyOf 1)[]stringEach itemThe status IDs requiring mapping.
statusIds (anyOf 2)nullAlternative

Get required status mappings for workflow scheme update — response body — status Mappings By Workflows The list of required status mappings by workflow item

FieldTypePresenceDescription and constraints
$objectRootThe list of required status mappings by workflow.
sourceWorkflowIdJSONOptional
sourceWorkflowId (anyOf 1)stringAlternativeThe ID of the source workflow.
sourceWorkflowId (anyOf 2)nullAlternative
statusIdsJSONOptional
statusIds (anyOf 1)arrayAlternativeThe status IDs requiring mapping.
Unique items: true
statusIds (anyOf 1)[]stringEach itemThe status IDs requiring mapping.
statusIds (anyOf 2)nullAlternative
targetWorkflowIdJSONOptional
targetWorkflowId (anyOf 1)stringAlternativeThe ID of the target workflow.
targetWorkflowId (anyOf 2)nullAlternative

Get required status mappings for workflow scheme update — response body — statuses Per Workflow The statuses associated with each workflow item

FieldTypePresenceDescription and constraints
$objectRootThe statuses associated with each workflow.
initialStatusIdJSONOptional
initialStatusId (anyOf 1)stringAlternativeThe ID of the initial status for the workflow.
initialStatusId (anyOf 2)nullAlternative
statusesJSONOptional
statuses (anyOf 1)arrayAlternativeThe status IDs associated with the workflow.
Unique items: true
statuses (anyOf 1)[]stringEach itemThe status IDs associated with the workflow.
statuses (anyOf 2)nullAlternative
workflowIdJSONOptional
workflowId (anyOf 1)stringAlternativeThe ID of the workflow.
workflowId (anyOf 2)nullAlternative

Get required status mappings for workflow scheme update — response body — statuses array item

FieldTypePresenceDescription and constraints
$objectRootThe details of the statuses in the associated workflows.
categoryJSONOptional
category (anyOf 1)stringAlternativeThe category of the status.
Known values: TODO, IN_PROGRESS, DONE
category (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the status.
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the status.
name (anyOf 2)nullAlternative

Get workflow for issue type in workflow scheme — response body

FieldTypePresenceDescription and constraints
$objectRootDetails about the mapping between an issue type and a workflow.
issueTypeJSONOptional
issueType (anyOf 1)stringAlternativeThe ID of the issue type. Not required if updating the issue type-workflow mapping.
issueType (anyOf 2)nullAlternative
updateDraftIfNeededJSONOptional
updateDraftIfNeeded (anyOf 1)booleanAlternativeSet 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.
updateDraftIfNeeded (anyOf 2)nullAlternative
workflowJSONOptional
workflow (anyOf 1)stringAlternativeThe name of the workflow.
workflow (anyOf 2)nullAlternative

Get workflow scheme — response body

FieldTypePresenceDescription and constraints
$objectRootDetails about a workflow scheme.
defaultWorkflowJSONOptional
defaultWorkflow (anyOf 1)stringAlternativeThe name of the default workflow for the workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira. If `defaultWorkflow` is not specified when creating a workflow scheme, it is set to *Jira Workflow (jira)*.
defaultWorkflow (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the workflow scheme.
description (anyOf 2)nullAlternative
draftJSONOptional
draft (anyOf 1)booleanAlternativeWhether the workflow scheme is a draft or not.
Read only: true
draft (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)JSONAlternative
id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the workflow scheme.
Format: int64
Read only: true
id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
id (anyOf 2)nullAlternative
issueTypeMappingsJSONOptional
issueTypeMappings (anyOf 1)objectAlternativeThe issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
Additional keys: see wildcard field
issueTypeMappings (anyOf 1).*stringAdditional keys
issueTypeMappings (anyOf 2)nullAlternative
issueTypesJSONOptional
issueTypes (anyOf 1)objectAlternativeThe issue types available in Jira.
Read only: true
Additional keys: see wildcard field
issueTypes (anyOf 1).*ModelAdditional keysExpand Get issue type — response body
issueTypes (anyOf 2)nullAlternative
lastModifiedJSONOptional
lastModified (anyOf 1)stringAlternativeThe date-time that the draft workflow scheme was last modified. A modification is a change to the issue type-project mappings only. This property does not apply to non-draft workflows.
Read only: true
lastModified (anyOf 2)nullAlternative
lastModifiedUserJSONOptional
lastModifiedUser (anyOf 1)ModelAlternativeExpand Get user — response body
The user that last modified the draft workflow scheme. A modification is a change to the issue type-project mappings only. This property does not apply to non-draft workflows.
Read only: true
lastModifiedUser (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the workflow scheme. The name must be unique. The maximum length is 255 characters. Required when creating a workflow scheme.
name (anyOf 2)nullAlternative
originalDefaultWorkflowJSONOptional
originalDefaultWorkflow (anyOf 1)stringAlternativeFor draft workflow schemes, this property is the name of the default workflow for the original workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira.
Read only: true
originalDefaultWorkflow (anyOf 2)nullAlternative
originalIssueTypeMappingsJSONOptional
originalIssueTypeMappings (anyOf 1)objectAlternativeFor draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
Read only: true
Additional keys: see wildcard field
originalIssueTypeMappings (anyOf 1).*stringAdditional keysRead only: true
originalIssueTypeMappings (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeFormat: uri
Read only: true
self (anyOf 2)nullAlternative
updateDraftIfNeededJSONOptional
updateDraftIfNeeded (anyOf 1)booleanAlternativeWhether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:

* Update an active workflow scheme with `updateDraftIfNeeded` set to `true`: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
* Update an active workflow scheme with `updateDraftIfNeeded` set to `false`: An error is returned, as active workflow schemes cannot be updated.
* Update an inactive workflow scheme with `updateDraftIfNeeded` set to `true`: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.

Defaults to `false`.
updateDraftIfNeeded (anyOf 2)nullAlternative

Referenced models: Get issue type — response body, Get user — response body

Set issue types for workflow in workflow scheme — workflow Schemes update Workflow Mapping — request body — body

FieldTypePresenceDescription and constraints
$objectRootDetails about the mapping between issue types and a workflow.
Additional keys: not allowed
defaultMappingbooleanOptionalWhether the workflow is the default workflow for the workflow scheme.
issueTypesarrayOptionalThe list of issue type IDs.
issueTypes[]stringEach item
updateDraftIfNeededbooleanOptionalWhether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new workflow-issue types mapping. Defaults to `false`.
workflowstringOptionalThe name of the workflow. Optional if updating the workflow-issue types mapping.

Set workflow for issue type in workflow scheme — request body — body

FieldTypePresenceDescription and constraints
$objectRootDetails about the mapping between an issue type and a workflow.
Additional keys: not allowed
issueTypestringOptionalThe ID of the issue type. Not required if updating the issue type-workflow mapping.
updateDraftIfNeededbooleanOptionalSet 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.
workflowstringOptionalThe name of the workflow.

Switch workflow scheme for project — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest to switch a project's workflow scheme
Additional keys: allowed
mappingsByIssueTypeOverridearrayOptionalThe mappings for migrating issues from old statuses to new statuses when switching from one workflow scheme to another. This field is required if any statuses in the current project's workflows would no longer exist in the target workflow scheme. Each mapping defines how to update issues from an old status to the corresponding new status in the issue’s new workflow.
mappingsByIssueTypeOverride[]ModelEach itemExpand Switch workflow scheme for project — request body — body mappings By Issue Type Override item
projectIdstringOptionalThe ID of the project to switch the workflow scheme for
targetSchemeIdstringOptionalThe ID of the target workflow scheme to switch to

Referenced models: Switch workflow scheme for project — request body — body mappings By Issue Type Override item

Switch workflow scheme for project — request body — body mappings By Issue Type Override item

FieldTypePresenceDescription and constraints
$objectRootThe mappings for migrating issues from old statuses to new statuses when switching from one workflow scheme to another. This field is required if any statuses in the current project's workflows would no longer exist in the target workflow scheme. Each mapping defines how to update issues from an old status to the corresponding new status in the issue’s new workflow.
Additional keys: not allowed
issueTypeIdstringOptional
statusMappingsarrayOptional
statusMappings[]ModelEach itemExpand Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item

Referenced models: Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item

Update default workflow — request body — body

FieldTypePresenceDescription and constraints
$objectRootDetails about the default workflow.
Additional keys: not allowed
updateDraftIfNeededbooleanOptionalWhether 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`.
workflowstringRequired within parentThe name of the workflow to set as the default workflow.

Update workflow scheme — request body — body

FieldTypePresenceDescription and constraints
$objectRootThe update workflow scheme payload.
Additional keys: allowed
defaultWorkflowIdstringOptionalThe ID of the workflow for issue types without having a mapping defined in this workflow scheme. Only used in global-scoped workflow schemes. If the `defaultWorkflowId` isn't specified, this is set to *Jira Workflow (jira)*.
descriptionstringRequired within parentThe new description for this workflow scheme.
idstringRequired within parentThe ID of this workflow scheme.
namestringRequired within parentThe new name for this workflow scheme.
statusMappingsByIssueTypeOverridearrayOptionalOverrides, for the selected issue types, any status mappings provided in `statusMappingsByWorkflows`. Status mappings are required when the new workflow for an issue type doesn't contain all statuses that the old workflow has. Status mappings can be provided by a combination of `statusMappingsByWorkflows` and `statusMappingsByIssueTypeOverride`.
statusMappingsByIssueTypeOverride[]ModelEach itemExpand Switch workflow scheme for project — request body — body mappings By Issue Type Override item
statusMappingsByWorkflowsarrayOptionalThe status mappings by workflows. Status mappings are required when the new workflow for an issue type doesn't contain all statuses that the old workflow has. Status mappings can be provided by a combination of `statusMappingsByWorkflows` and `statusMappingsByIssueTypeOverride`.
statusMappingsByWorkflows[]ModelEach itemExpand Update workflow scheme — request body — body status Mappings By Workflows item
versionModelRequired within parentExpand Update workflow scheme — request body — body version
workflowsForIssueTypesarrayOptionalMappings from workflows to issue types.
workflowsForIssueTypes[]ModelEach itemExpand Update workflow scheme — request body — body workflows For Issue Types item

Referenced models: Update workflow scheme — request body — body version, Switch workflow scheme for project — request body — body mappings By Issue Type Override item, Update workflow scheme — request body — body status Mappings By Workflows item, Update workflow scheme — request body — body workflows For Issue Types item

Update workflow scheme — request body — body status Mappings By Workflows item

FieldTypePresenceDescription and constraints
$objectRootThe status mappings by workflows. Status mappings are required when the new workflow for an issue type doesn't contain all statuses that the old workflow has. Status mappings can be provided by a combination of `statusMappingsByWorkflows` and `statusMappingsByIssueTypeOverride`.
Additional keys: not allowed
newWorkflowIdstringRequired within parentThe ID of the new workflow.
oldWorkflowIdstringRequired within parentThe ID of the old workflow.
statusMappingsarrayRequired within parentThe list of status mappings.
statusMappings[]ModelEach itemExpand Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item

Referenced models: Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item

Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
newStatusIdstringOptional
oldStatusIdstringOptional

Update workflow scheme — request body — body version

FieldTypePresenceDescription and constraints
$objectRootThe current version details of this workflow scheme.
Additional keys: not allowed
idstringOptionalThe version UUID.
versionNumberintegerOptionalThe version number.
Format: int64

Update workflow scheme — request body — body workflows For Issue Types item

FieldTypePresenceDescription and constraints
$objectRootThe explicit association between issue types and a workflow in a workflow scheme.
Additional keys: not allowed
issueTypeIdsarrayRequired within parentThe issue types assigned to the workflow.
Unique items: true
issueTypeIds[]stringEach itemThe issue types assigned to the workflow.
workflowIdstringRequired within parentThe ID of the workflow.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.