Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI: workflow tasks

List stages and tasks, control ownership and priority, perform stage actions, and inspect history.

Outcome: List stages and tasks, control ownership and priority, perform stage actions, and inspect history.

unitlab workflow stages PROJECT_ID --json
unitlab workflow tasks PROJECT_ID --stage STAGE_ID --json
unitlab workflow tasks PROJECT_ID --stage STAGE_ID --include-unavailable --json
unitlab workflow task TASK_ID --json
unitlab workflow claim TASK_ID --json
unitlab workflow assign TASK_ID USER_ID --json
unitlab workflow release TASK_ID --json
unitlab workflow priority TASK_ID 10 --json
unitlab workflow submit TASK_ID --json
unitlab workflow approve TASK_ID --json
unitlab workflow reject TASK_ID --reason "Boundary" --comment "Exclude shadow" --json
unitlab workflow skip TASK_ID --json
unitlab workflow move TASK_ID STAGE_ID --json
unitlab workflow timeline TASK_ID --json

unitlab workflow bulk-assign PROJECT_ID --task TASK_ID_1 --task TASK_ID_2 --user USER_ID --json
unitlab workflow bulk-move PROJECT_ID --task TASK_ID_1 --task TASK_ID_2 --stage STAGE_ID --dry-run --json

The active workflow controls valid actions. --include-unavailable also lists tasks that the stage's assignment rules do not currently offer to you. release removes a task's assignee, skip sends a task along the stage's skip route, and move sends it directly to another stage. Bulk assignment and bulk move require an explicit task list: repeat --task for each task ID; use --dry-run for bulk moves before committing.

Operating contract

Concern
Required behavior

Execution surface

Pinned unitlab==3.1.6 command in the intended Python 3.10+ environment.

Machine contract

Use --json; human-readable output is not an automation interface.

Target resolution

Resolve stable IDs with a read command before a state-changing command.

Success evidence

Exit status, JSON result, returned IDs, and a read-after-write state check.

Failure and recovery boundary

Condition
Response

Authentication or authorization fails

Stop, correct the service identity or access model, rotate exposed credentials, and rerun a read-only check.

Validation or entitlement rejects the operation

Correct the input or entitlement; do not retry an unchanged request.

A request times out

Inspect remote state before repeating a mutation because the server may have accepted it.

Asynchronous processing exceeds its deadline

Preserve the Batch Queue or release ID, continue bounded monitoring, and inspect item-level failures.

Only part of a batch succeeds

Keep successful identifiers, isolate failed rows, and retry only the corrected subset.


Related Unitlab capability guides: enterprise data annotation workflows