Skip to content

Atlassian: Read workflow version from history

Atlassian workflows.readWorkflowFromHistory: arguments, response, policy and SDK examples.

← Workflows operations · Get started

Operation atlassian.readworkflowfromhistory

Provider route: POST /{cloudId}/rest/api/3/workflow/history. 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["workflows"]["readWorkflowFromHistory"]>[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.workflows.readWorkflowFromHistory(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.workflows.read_workflow_from_history(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 Read workflow version from history — request body — body

Referenced models: Read workflow version from history — 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 Read workflow version from history — response body

Referenced models: Read workflow version from history — response body

9 more schemas are linked from the tables above, on the schema pages.

Read workflow version from history — response body
FieldTypePresenceDescription and constraints
$objectRootThe specified workflow version read from history.
statusesJSONOptional
statuses (anyOf 1)arrayAlternativeUnique items: true
statuses (anyOf 1)[]ModelEach itemExpand Read workflow version from history — response body — statuses array item
statuses (anyOf 2)nullAlternative
workflowsJSONOptional
workflows (anyOf 1)arrayAlternativeUnique items: true
workflows (anyOf 1)[]ModelEach itemExpand Read workflow version from history — response body — workflows array item
workflows (anyOf 2)nullAlternative

Referenced models: Read workflow version from history — response body — workflows array item, Read workflow version from history — response body — statuses array item

Read workflow version from history — request body — body
FieldTypePresenceDescription and constraints
$objectRootA request to read a specific workflow version from history.
Additional keys: not allowed
versionintegerOptionalFormat: int64
workflowIdstringOptional
Read workflow version from history — response body — workflows array item
FieldTypePresenceDescription and constraints
$objectRootThe workflow stored for the specified version.
createdJSONOptional
created (anyOf 1)stringAlternative
created (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternative
id (anyOf 2)nullAlternative
lastUpdateAuthorAAIDJSONOptional
lastUpdateAuthorAAID (anyOf 1)stringAlternative
lastUpdateAuthorAAID (anyOf 2)nullAlternative
loopedTransitionContainerLayoutJSONOptional
loopedTransitionContainerLayout (anyOf 1)ModelAlternativeExpand Read workflow version from history — response body — workflows array item start Point Layout value
loopedTransitionContainerLayout (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternative
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
startPointLayoutJSONOptional
startPointLayout (anyOf 1)ModelAlternativeExpand Read workflow version from history — response body — workflows array item start Point Layout value
startPointLayout (anyOf 2)nullAlternative
statusesJSONOptional
statuses (anyOf 1)arrayAlternativeUnique items: true
statuses (anyOf 1)[]ModelEach itemExpand Read workflow version from history — response body — workflows array item statuses array item
statuses (anyOf 2)nullAlternative
transitionsJSONOptional
transitions (anyOf 1)arrayAlternativeUnique items: true
transitions (anyOf 1)[]ModelEach itemExpand Read workflow version from history — response body — workflows array item transitions array item
transitions (anyOf 2)nullAlternative
updatedJSONOptional
updated (anyOf 1)stringAlternative
updated (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, Read workflow version from history — response body — workflows array item start Point Layout value, Bulk get workflow schemes — response body — item scope The scope of the workflow, Read workflow version from history — response body — workflows array item statuses array item, Read workflow version from history — response body — workflows array item transitions array item

Read workflow version from history — response body — statuses array item
FieldTypePresenceDescription and constraints
$objectRootThe statuses stored for the specified version.
descriptionJSONOptional
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternative
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternative
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
statusCategoryJSONOptional
statusCategory (anyOf 1)stringAlternative
statusCategory (anyOf 2)nullAlternative
statusReferenceJSONOptional
statusReference (anyOf 1)stringAlternative
statusReference (anyOf 2)nullAlternative

Referenced models: Bulk get workflow schemes — response body — item scope The scope of the workflow

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
Read workflow version from history — response body — workflows array item start Point Layout value
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeThe starting point for the statuses in the workflow.
$ (anyOf 1).xJSONOptional
$ (anyOf 1).x (anyOf 1)JSONAlternative
$ (anyOf 1).x (anyOf 1) (anyOf 1)numberAlternativeThe x axis location.
Format: double
$ (anyOf 1).x (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).x (anyOf 2)nullAlternative
$ (anyOf 1).yJSONOptional
$ (anyOf 1).y (anyOf 1)JSONAlternative
$ (anyOf 1).y (anyOf 1) (anyOf 1)numberAlternativeThe y axis location.
Format: double
$ (anyOf 1).y (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).y (anyOf 2)nullAlternative
$ (anyOf 2)nullAlternative
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.readworkflowfromhistory. Catalog operation: readworkflowfromhistory. 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.