WorkflowSchemes
Handles the configuration of workflow schemes that assign workflows to issue types across projects.
Note: This table is available only in the Jira Cloud version.
Select
The cmdlet will use the Jira API to process filters that refer to Id while the rest of the filter is executed client side within the cmdlet. The Jira APIs support filters using the equals (=) operator with Id.
For example, the below queries are processed server side.
Retrieve all the available workflow schemes:
SELECT * FROM WorkflowSchemes
Retrieve a specific workflow scheme by Id:
SELECT * FROM WorkflowSchemes WHERE Id = 10400
Insert
Name is required to insert. The following query creates a new workflow scheme:
INSERT INTO WorkflowSchemes (name, Description, DefaultWorkflow, IssueTypeMappingsAggregate) VALUES('Jira Service Management IT Support Workflow', 'Incident Management workflow for Jira Service Management.', 'jira', '{"10201": "jira"}')
Update
You can update by specifying the workflow scheme Id:
UPDATE WorkflowSchemes SET Name = 'Jira Updated Service Management IT Support Workflow', Description='Updated incident Management workflow for Jira Service Management.' WHERE Id =11526
Delete
Delete a workflow scheme by specifying the workflow scheme Id:
DELETE WorkflowSchemes WHERE Id=11526
Columns
| Name | Type | ReadOnly | References | SupportedOperators | Platform | Description |
| Id [KEY] | Integer | True | = | Cloud |
The unique identifier of the workflow scheme. This ID is used to manage and reference the scheme in Jira operations. | |
| Name | String | False | Cloud |
The user-defined name of the workflow scheme. Workflow schemes define how issues transition through workflows based on their issue types. | ||
| Description | String | False | Cloud |
An optional description that explains the purpose or usage of the workflow scheme. Useful for distinguishing between multiple schemes. | ||
| IssueTypeMappingsAggregate | String | False | Cloud |
A JavaScript Object Notation (JSON)-style aggregate listing mappings between issue types and workflows. Each mapping pairs an issue type ID with the name of its assigned workflow. | ||
| DefaultWorkflow | String | False | Cloud |
The name of the workflow used for issue types not explicitly mapped in the scheme. Acts as a fallback when no direct mapping is available. | ||
| Self | String | True | Cloud |
A REST API URL pointing to the workflow scheme resource. Useful for retrieving or updating the scheme programmatically. |