Issues
Track and triage work. Issues carry human keys (ISS-4821); detail routes accept either the key or the numeric id.
Auth: all calls require a Bearer JWT plus the X-Workspace-Id header.
/api/issuesAuth requiredList issues with filters. Returns issues plus the total match count.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| status | string | No | "Backlog" | "To do" | "In progress" | "In review" | "Done" |
| priority | string | No | "P0" | "P1" | "P2" | "P3" |
| issue_type | string | No | "bug" | "feature" | "task" | "epic" |
| team | string | No | — |
| assignee | string | No | — |
| project_id | number | No | — |
| sprint_id | number | No | — |
| search | string | No | Matches title, description, and key |
| limit | number | No | Default 50, max 200 |
| offset | number | No | Default 0 |
Response
{
"issues": [
{
"id": 12,
"key": "ISS-4821",
"title": "Checkout button hangs on Safari",
"status": "In progress",
"priority": "P1",
"issue_type": "bug",
"assignee": "sam",
"comment_count": 2,
"subtask_total": 3,
"subtask_done": 1
}
],
"total": 1
}/api/issuesAuth requiredCreate an issue. The server mints the next ISS-nnnn key for the workspace.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | 1–300 chars |
| description | string | No | Default empty |
| team | string | No | — |
| status | string | No | Default "To do" |
| priority | string | No | Default "P2" |
| issue_type | string | No | Default "task" |
| assignee | string | No | — |
| reporter | string | No | — |
| labels | string[] | No | — |
| story_points | number | No | — |
| sla_due | string | No | ISO timestamp |
| project_id | number | No | Must exist in workspace |
| sprint_id | number | No | Must exist in workspace |
| epic_id | number | No | Must be an epic issue |
Response
{
"id": 13,
"key": "ISS-4822",
"title": "Add password reset flow",
"status": "To do",
"priority": "P2",
"issue_type": "feature",
"created_at": "2026-03-28T10:00:00Z",
"updated_at": "2026-03-28T10:00:00Z"
}/api/issues/boardAuth requiredStatus board columns with their issues, for drag-drop boards.
Response
[
{ "status": "Backlog", "count": 4, "issues": [ ... ] },
{ "status": "To do", "count": 2, "issues": [ ... ] },
{ "status": "Done", "count": 9, "issues": [ ... ] }
]/api/issues/slasAuth requiredOpen issues with an SLA clock, most urgent first.
Response
[
{
"id": 12,
"key": "ISS-4821",
"title": "Checkout button hangs on Safari",
"sla_due": "2026-03-29T10:00:00Z",
"sla_label": "Breaches in 5h",
"sla_state": "r"
}
]/api/issues/{ref}Auth requiredGet one issue by key (ISS-4821) or numeric id, with comments, subtasks, triage notes, and linked refs.
Response
{
"id": 12,
"key": "ISS-4821",
"title": "Checkout button hangs on Safari",
"status": "In progress",
"comments": [ ... ],
"subtasks": [ ... ],
"triage": ["P1: Checkout button hangs on Safari"],
"linked": ["PRJ-118"]
}/api/issues/{ref}Auth requiredUpdate an issue. All fields optional. Closing without a resolution stamps one automatically.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | No | — |
| description | string | No | — |
| status | string | No | — |
| priority | string | No | — |
| issue_type | string | No | — |
| assignee | string | No | — |
| labels | string[] | No | — |
| story_points | number | No | — |
| resolution | string | No | — |
| project_id | number | No | — |
| sprint_id | number | No | — |
| epic_id | number | No | — |
Response
{
"id": 12,
"key": "ISS-4821",
"status": "In review",
"updated_at": "2026-03-28T14:30:00Z"
}/api/issues/{ref}/moveAuth requiredBoard drag-drop status change. Reopening clears the resolution.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| status | string | Yes | Must be a known status |
Response
{
"id": 12,
"key": "ISS-4821",
"status": "Done",
"resolution": "done"
}/api/issues/{ref}Auth requiredDelete an issue, its comments, and its subtasks. Child issues are detached from deleted epics.
Response
{ "deleted": "ISS-4821" }Comments
/api/issues/{ref}/commentsAuth requiredList comments on an issue, oldest first.
Response
{
"comments": [
{
"id": 3,
"issue_id": 12,
"author": "sam",
"kind": "comment",
"body": "Reproduced on Safari 18",
"created_at": "2026-03-28T11:00:00Z"
}
],
"total": 1
}/api/issues/{ref}/commentsAuth requiredAdd a comment to an issue.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| body | string | Yes | — |
| author | string | No | — |
| kind | string | No | Default "comment" |
Response
{
"id": 4,
"issue_id": 12,
"author": "sam",
"kind": "comment",
"body": "Fix verified on staging",
"created_at": "2026-03-28T14:30:00Z"
}Subtasks
/api/issues/{ref}/subtasksAuth requiredList subtasks on an issue, in sort order.
Response
{
"subtasks": [
{
"id": 7,
"issue_id": 12,
"title": "Write regression test",
"due": "2026-03-30",
"done": false,
"assignee": "sam"
}
],
"total": 1
}/api/issues/{ref}/subtasksAuth requiredAdd a subtask to an issue. Appended at the end of the sort order.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| due | string | No | — |
| assignee | string | No | — |
Response
{
"id": 8,
"issue_id": 12,
"title": "Update changelog",
"due": null,
"done": false,
"assignee": null
}/api/issues/{ref}/subtasks/{subtask_id}Auth requiredUpdate a subtask. All fields optional.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | No | — |
| due | string | No | — |
| done | boolean | No | — |
| assignee | string | No | — |
Response
{
"id": 7,
"issue_id": 12,
"title": "Write regression test",
"done": true
}/api/issues/{ref}/subtasks/{subtask_id}Auth requiredDelete a subtask.
Response
{ "deleted": 7 }/api/issues/subtasks/{subtask_id}/toggleAuth requiredFlip a subtask's done flag.
Response
{
"id": 7,
"issue_id": 12,
"title": "Write regression test",
"done": false
}Stats
/api/issues/stats/summaryAuth requiredIssue counts by status, plus open counts by priority.
Response
{
"total": 24,
"by_status": { "Backlog": 4, "To do": 8, "Done": 12 },
"open_by_priority": { "P0": 1, "P1": 3, "P2": 8 }
}