Statuses
Named states a work item can be in, such as
backlog, in_progress, or completed.Stages
Groups of statuses that represent a phase of work. Stage gates enforce entry requirements.
Stage gates
Checkpoints between stages that require acknowledgement, checklist completion, or custom-field values before progressing.
Custom fields
Structured data fields attached to a workflow, optionally required at specific transitions.
Creating a workflow
Use the API to create a workflow in your domain:workflowId, that value is immutable.
Managing workflow statuses and stages
After creating a workflow, update its statuses and stages:All status transitions and stage gate requirements are validated server-side. A work item cannot bypass a gate through the API or CLI.
Adding custom fields
Custom fields let you capture structured data on work items that use a workflow. Add a field with:Attaching a workflow to a domain
Once a workflow is configured, attach it to a domain so it becomes available when creating work items in that domain:Viewing workflows via CLI
Assigning a workflow to a work item
Pass--workflow-id when creating or updating a work item:
Viewing available transitions
Before claiming or progressing a work item, check which status transitions and stage gates are currently available:availableTransitions: statuses reachable from the current stateavailableStageGates: gates that can be progressed right nowterminalStatuses: statuses that mark the work item as resolved
Progressing through a stage gate
When a workflow stage has a gate, you must satisfy its requirements before moving to the next stage.1
Check available gates
2
Progress through a text-acknowledgement gate
3
Progress through a checklist gate
Completing work
Once a work item has progressed through its workflow, claim it, complete it, or use the one-shotdone shortcut:
complete requires a terminal status from the workflow’s terminalStatuses list. It clears active agent fields and marks the work item as resolved.