Skip to content

Atlassian: Get required status mappings for workflow scheme update

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

← Workflow schemes operations · Get started

Operation atlassian.getrequiredworkflowschememappings

Provider route: POST /{cloudId}/rest/api/3/workflowscheme/update/mappings. 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"]["getRequiredWorkflowSchemeMappings"]>[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.getRequiredWorkflowSchemeMappings(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.get_required_workflow_scheme_mappings(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 Get required status mappings for workflow scheme update — request body — body

Referenced models: Get required status mappings for workflow scheme update — 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
$ModelRootExpand Get required status mappings for workflow scheme update — response body

Referenced models: Get required status mappings for workflow scheme update — response body

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 — 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 — 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 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 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
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.

SDK function policy ID: atlassian.getrequiredworkflowschememappings. Catalog operation: getrequiredworkflowschememappings. 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.