oi work-item command group covers the full lifecycle: listing, creating, updating, transitioning through workflow stages, scheduling, collaborating via comments, and managing attachments, dependencies, and custom fields.
List and get
agent-context returns the agent-oriented workflow bundle for a work item. In --json mode it returns the full backend payload from /browse/:key/agent-context. In human mode it summarises the current goal, allowed exits, blocked exits, and required fields.
List filters
Create
Update
Claim and complete
claimrequires a valid workflow transition from the current status.completerequires a valid transition to a terminal status, clears active agent fields, and marks the item as resolved.doneauto-progresses through valid stage gates to a completion stage (completedby default).
Progress through stage gates
Useprogress to advance a work item through a workflow stage gate:
Transitions
Inspect valid transitions and available stage gates for a work item:claim, complete, or progress when you are unsure of the allowed next states.
Schedule placement
Hierarchy
Comments
--bodyis required forcreateandupdate.--visibilitydefaults tointernal. Passexternalto share the comment outside the team.
Custom fields
--values-json accepts a JSON object keyed by workflow custom field key.
Attachments
Dependencies
Audit log
--output to write directly to a file.