Skip to content

Atlassian: Update workflow scheme

Atlassian workflowSchemes.updateSchemes: arguments, response, policy and SDK examples.

← Workflow schemes operations · Get started

Operation atlassian.updateschemes

Provider route: POST /{cloudId}/rest/api/3/workflowscheme/update. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["workflowSchemes"]["updateSchemes"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.workflowSchemes.updateSchemes(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.workflow_schemes.update_schemes(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
bodyModelRequired within parentExpand Update workflow scheme — request body — body

Referenced models: Update workflow scheme — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
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 version
FieldTypePresenceDescription and constraints
$objectRootThe current version details of this workflow scheme.
Additional keys: not allowed
idstringOptionalThe version UUID.
versionNumberintegerOptionalThe version number.
Format: int64
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 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 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.
Update workflow scheme — request body — body status Mappings By Workflows item status Mappings item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
newStatusIdstringOptional
oldStatusIdstringOptional

SDK function policy ID: atlassian.updateschemes. Catalog operation: updateschemes. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["manage:jira-configuration"]

Official provider source

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.