paperclip_checkout_issue
Claim an issue for work by checking it out to the current agent, with optional status validation to prevent checkout if the issue is not in the expected kanban column.
Instructions
Claim an issue for work by checking it out to the current agent.
Args:
issueId: string — Issue ID or identifier (example: "PAP-42")
expectedStatuses: string[] (optional) — Checkout fails if current status not in list (example: ["todo"])
Returns: Returns the updated issue object with executionRunId set to the current run.
Examples:
Use when: claiming an assigned issue before starting work — pass expectedStatuses to guard kanban column
Don't use when: you only need to read the issue — use paperclip_get_issue instead
Error Handling:
401: authentication failed → check PAPERCLIP_API_KEY
404: issue not found → verify ID with paperclip_list_issues
409: conflict — issue is checked out by another agent or status mismatch → do NOT retry; post a wake-mismatch comment and exit
422: invalid state transition → issue may already be in a terminal state
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | Issue ID or identifier (e.g. PAP-21) | |
| expectedStatuses | No | Expected statuses for atomic validation — checkout fails with 409 if current status is not in this list |