Usage
Description
Update one or more issues. If no ID is provided, updates the last touched issue. The--claim flag provides atomic compare-and-swap semantics for claiming work.
Parameters
Issue IDs to update. If omitted, uses the last touched issue from recent create/update/show/close.
Field Updates
Update issue title
Update status:
open, in_progress, blocked, deferred, closed, pinned, hookedUpdate priority: 0-4 or P0-P4
Update issue type:
bug, feature, task, epic, chore, decisionUpdate assignee. Use empty string to unassign.
Update description. Use
- to read from stdin.Update design notes
Update acceptance criteria
Replace notes field
Append to notes field (cannot be used with
--notes)Update time estimate in minutes
Labels
Add labels (repeatable). Preserves existing labels.
Remove labels (repeatable)
Replace all labels (repeatable)
Scheduling
Update due date. Use empty string to clear. Formats:
+6h, tomorrow, 2025-01-15Update defer_until. Use empty string to clear. Same formats as
--dueMetadata
Replace entire metadata (JSON string or
@file.json)Set individual metadata fields (format:
key=value, repeatable)Remove metadata fields (repeatable)
Atomic Operations
Atomically claim the issue (sets assignee to you, status to
in_progress). Fails if already claimed.Reparent the issue. Use empty string to remove parent.
Mark issue as ephemeral (wisp)
Mark issue as persistent (promote wisp to regular issue)
Output
Output JSON for agent use
Examples
Basic Updates
Atomic Claim
Label Management
Metadata Operations
Time Management
Append Notes
Reparenting
Bulk Updates
JSON Output
With--json flag:
Atomic Claim Semantics
The--claim flag uses compare-and-swap to prevent race conditions:
Validation
Status Validation
Only valid statuses are accepted:Priority Validation
Priority must be 0-4 or P0-P4:Metadata Key Validation
Metadata keys must be alphanumeric with underscores:Best Practices
For Agents
- Use
--claimto atomically take ownership - Always use
--jsonfor parsing - Update status to reflect progress (in_progress → closed)
- Append notes to document investigation findings
For Humans
- Use incremental label operations (
--add-label) to avoid data loss - Set due dates for time-sensitive work
- Update priority as urgency changes
- Add context via
--append-notesfor future reference