Skip to content

Atlassian: Bulk start agent sessions (batch)

Atlassian agents.startBatch: arguments, response, policy and SDK examples.

← Agents operations · Get started

Operation atlassian.startbatch

Provider route: POST /{cloudId}/rest/api/3/agents/bulk/invoke/batch. 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["agents"]["startBatch"]>[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.agents.startBatch(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.agents.start_batch(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 start agent sessions (batch) — request body — body

Referenced models: Bulk start agent sessions (batch) — 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 Bulk start agent sessions (batch) — response body

Referenced models: Bulk start agent sessions (batch) — response body

Bulk start agent sessions (batch) — request body — body
FieldTypePresenceDescription and constraints
$objectRootA batch of agent-session invocations.
Additional keys: not allowed
clientMutationIdstringRequired within parentCaller-supplied UUID
Format: uuid
invocationsarrayRequired within parentBetween 1 and 50 invocations. Request IDs must be unique within the request.
invocations[]ModelEach itemExpand Bulk start agent sessions (batch) — request body — body invocations item

Referenced models: Bulk start agent sessions (batch) — request body — body invocations item

Bulk start agent sessions (batch) — response body
FieldTypePresenceDescription and constraints
$objectRootSession-start outcomes, not completion of the agent's work.
alreadyStartedCountJSONOptional
alreadyStartedCount (anyOf 1)JSONAlternative
alreadyStartedCount (anyOf 1) (anyOf 1)integerAlternativeNumber of ALREADY\_STARTED items.
Format: int32
Minimum: 0
alreadyStartedCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
alreadyStartedCount (anyOf 2)nullAlternative
failedCountJSONOptional
failedCount (anyOf 1)JSONAlternative
failedCount (anyOf 1) (anyOf 1)integerAlternativeNumber of FAILED and IN\_DOUBT items.
Format: int32
Minimum: 0
failedCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
failedCount (anyOf 2)nullAlternative
rateLimitedCountJSONOptional
rateLimitedCount (anyOf 1)JSONAlternative
rateLimitedCount (anyOf 1) (anyOf 1)integerAlternativeNumber of RATE\_LIMITED items.
Format: int32
Minimum: 0
rateLimitedCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
rateLimitedCount (anyOf 2)nullAlternative
resultsJSONOptional
results (anyOf 1)arrayAlternativeOne outcome per requested item.
results (anyOf 1)[]ModelEach itemExpand Bulk start agent sessions (batch) — response body — results One outcome per requested item item
results (anyOf 2)nullAlternative
startedCountJSONOptional
startedCount (anyOf 1)JSONAlternative
startedCount (anyOf 1) (anyOf 1)integerAlternativeNumber of STARTED items.
Format: int32
Minimum: 0
startedCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
startedCount (anyOf 2)nullAlternative
successJSONOptional
success (anyOf 1)booleanAlternativeTrue when startedCount or alreadyStartedCount is greater than zero. Does not indicate that every item succeeded.
success (anyOf 2)nullAlternative

Referenced models: Bulk start agent sessions (batch) — response body — results One outcome per requested item item

Bulk start agent sessions (batch) — request body — body invocations item
FieldTypePresenceDescription and constraints
$objectRootOne agent-session invocation for an issue.
Additional keys: not allowed
agentIdstringRequired within parentRovo agent ID.
issueIdstringRequired within parentNumeric issue ID as a string.
requestIdstringRequired within parentUnique per-item UUID.
Format: uuid
userPromptJSONOptional
userPrompt (anyOf 1)stringAlternativeOptional prompt for this invocation.
userPrompt (anyOf 2)nullAlternative
Bulk start agent sessions (batch) — response body — results One outcome per requested item item
FieldTypePresenceDescription and constraints
$objectRootThe start outcome for one invocation.
agentIdJSONOptional
agentId (anyOf 1)stringAlternativeThe caller's Rovo agent ID.
agentId (anyOf 2)nullAlternative
conversationIdJSONOptional
conversationId (anyOf 1)JSONAlternative
conversationId (anyOf 1) (anyOf 1)stringAlternativeConversation ID for STARTED or ALREADY\_STARTED only.
conversationId (anyOf 1) (anyOf 2)nullAlternative
conversationId (anyOf 2)nullAlternative
errorJSONOptional
error (anyOf 1)ModelAlternativeExpand Bulk start agent sessions (batch) — response body — results One outcome per requested item item error value
error (anyOf 2)nullAlternative
issueIdJSONOptional
issueId (anyOf 1)stringAlternativeNumeric issue ID.
issueId (anyOf 2)nullAlternative
requestIdJSONOptional
requestId (anyOf 1)stringAlternativeThe per-item requestId for batch; the shared clientMutationId for uniform.
requestId (anyOf 2)nullAlternative
resultJSONOptional
result (anyOf 1)stringAlternativeSTARTED: session started; ALREADY\_STARTED: recorded successful retry; FAILED: invocation failed; RATE\_LIMITED: admission denied; IN\_DOUBT: start could not be confirmed.
Known values: STARTED, ALREADY_STARTED, FAILED, RATE_LIMITED, IN_DOUBT
result (anyOf 2)nullAlternative

Referenced models: Bulk start agent sessions (batch) — response body — results One outcome per requested item item error value

Bulk start agent sessions (batch) — response body — results One outcome per requested item item error value
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeAn item-level error inside an HTTP 200 response.
$ (anyOf 1).messageJSONOptional
$ (anyOf 1).message (anyOf 1)stringAlternativeError message.
$ (anyOf 1).message (anyOf 2)nullAlternative
$ (anyOf 1).statusCodeJSONOptional
$ (anyOf 1).statusCode (anyOf 1)JSONAlternative
$ (anyOf 1).statusCode (anyOf 1) (anyOf 1)integerAlternativeHTTP status code.
Format: int32
$ (anyOf 1).statusCode (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).statusCode (anyOf 2)nullAlternative
$ (anyOf 1).typeJSONOptional
$ (anyOf 1).type (anyOf 1)stringAlternativeError type.
Known values: AGENT_NOT_ASSIGNABLE, AGENT_NOT_FOUND, INVALID_REQUEST_ID, ISSUE_NOT_FOUND, IDEMPOTENCY_CONFLICT, ISSUE_VERSION_MISSING, ISSUE_ACCESS_DENIED, RATE_LIMITED, CONCURRENCY_SATURATED, AGENT_TRIGGER_FAILED, IDEMPOTENCY_ERROR, PRIOR_ATTEMPT_FAILED, SESSION_NOT_STARTED, IN_DOUBT, UNEXPECTED_ERROR
$ (anyOf 1).type (anyOf 2)nullAlternative
$ (anyOf 2)nullAlternative

SDK function policy ID: atlassian.startbatch. Catalog operation: startbatch. 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: ["write:jira-work"]

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.