Skip to content

Atlassian: Bulk get workflow schemes

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

← Workflow schemes operations · Get started

Operation atlassian.readworkflowschemes

Provider route: POST /{cloudId}/rest/api/3/workflowscheme/read. 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"]["readWorkflowSchemes"]>[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.readWorkflowSchemes(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.read_workflow_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 Bulk get workflow schemes — request body — body

Referenced models: Bulk get workflow schemes — 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
$arrayRoot
$[]ModelEach itemExpand Bulk get workflow schemes — response body — item

Referenced models: Bulk get workflow schemes — response body — item

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

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 statuses — response body — item scope The scope of the status project value
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeProject ID details.
$ (anyOf 1).idJSONOptional
$ (anyOf 1).id (anyOf 1)stringAlternativeThe ID of the project.
$ (anyOf 1).id (anyOf 2)nullAlternative
$ (anyOf 2)nullAlternative

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