Skip to content
Proud to collaborate with Microsoft for Startups

ticket.operator.transition-batch ​

Apply ticket.transition semantics to many tickets in one operator run, with per-item error isolation.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
itemsjsonYes—List of {ticket_uuid, to_status, resolution?, comment?} objects.
dry_runbooleanNo—When true, validate and report without mutating tickets.
limitintegerNo—Maximum items to process (default 50, max 200).
actor_typestringNo——
actor_uuidstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringNo——
dry_runbooleanNo——
processedintegerNo——
appliedintegerNo——
skippedintegerNo——
errorsintegerNo——
resultsjsonNo——
itemsjsonNo—Input field preserved in workflow state.
limitintegerNo—Input field preserved in workflow state.
actor_typestringNo—Input field preserved in workflow state.
actor_uuidstringNo—Input field preserved in workflow state.
failed_atstringNo—ISO-8601 timestamp when action_fail recorded the failure
failure_reasonstringNo—Human-readable failure reason from action_fail
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—executeAccepted
executingNoNo—completeApplying the mutation
completedNoYesYes—Done
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedexecuteexecutingRun the mutation
executingcompletecompletedFinalize
* (any state)failfailedCatch-all failure

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "ticket.operator.transition-batch",
  "initial_data": {
    "organization_uuid": "value",
    "items": "value"
  }
}