OptionaldefaultWorkflow?: stringThe 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).
Optionaldescription?: stringThe description of the workflow scheme.
Optionaldraft?: booleanWhether the workflow scheme is a draft or not.
Optionalid?: numberThe ID of the workflow scheme.
OptionalissueTypeMappings?: Record<string, any>The 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.
OptionalissueTypes?: Record<string, any>The issue types available in Jira.
OptionallastModified?: stringThe 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.
OptionallastModifiedUser?: {OptionalaccountId?: stringThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required in requests.
OptionalaccountType?: "unknown" | string & {} | "atlassian" | "app" | "customer"The user account type. Can take the following values:
atlassian regular Atlassian user accountapp system account used for Connect applications and OAuth to represent external systemscustomer Jira Service Desk account representing an external service deskOptionalactive?: booleanWhether the user is active.
OptionalapplicationRoles?: {OptionalappType?: stringThe app type of the user account when accountType is 'app'. Can take the following values:
service Service Accountagent Rovo Agent Accountunknown Unknown app typeOptionalavatarUrls?: {Optional16x16?: stringThe URL of the item's 16x16 pixel avatar.
Optional24x24?: stringThe URL of the item's 24x24 pixel avatar.
Optional32x32?: stringThe URL of the item's 32x32 pixel avatar.
Optional48x48?: stringThe URL of the item's 48x48 pixel avatar.
OptionaldisplayName?: stringThe display name of the user. Depending on the user’s privacy setting, this may return an alternative value.
OptionalemailAddress?: stringThe email address of the user. Depending on the user’s privacy setting, this may be returned as null.
Optionalexpand?: stringExpand options that include additional user details in the response.
Optionalgroups?: {Optionalguest?: booleanWhether the user is a guest.
Optionallocale?: stringThe locale of the user. Depending on the user’s privacy setting, this may be returned as null.
Optionalself?: stringThe URL of the user.
OptionaltimeZone?: stringThe time zone specified in the user's profile. If the user's time zone is not visible to the current user (due to user's profile setting), or if a time zone has not been set, the instance's default time zone will be returned.
Optionalname?: stringThe name of the workflow scheme. The name must be unique. The maximum length is 255 characters. Required when creating a workflow scheme.
OptionaloriginalDefaultWorkflow?: stringFor 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.
OptionaloriginalIssueTypeMappings?: Record<string, any>For 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.
Optionalself?: stringOptionalupdateDraftIfNeeded?: booleanWhether 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:
updateDraftIfNeeded set to true: If a draft workflow scheme exists, it is
updated. Otherwise, a draft workflow scheme is created.updateDraftIfNeeded set to false: An error is returned, as active
workflow schemes cannot be updated.updateDraftIfNeeded set to true: The workflow scheme is updated, as
inactive workflow schemes do not require drafts to update.Defaults to false.
The ID of the workflow scheme. Find this ID by editing the desired workflow scheme in Jira. The ID is shown in the
URL as schemeId. For example, schemeId=10301.
Optionaloptions: RequestOptions
Updates a company-manged project workflow scheme, including the name, default workflow, issue type to project mappings, and more. If the workflow scheme is active (that is, being used by at least one project), then a draft workflow scheme is created or updated instead, provided that
updateDraftIfNeededis set totrue.Permissions required: Administer Jira global permission.