EaserixDocs
DevelopersAPI referenceTasksIssues

Get an issue

The issue with state, assignee, and labels embedded.

View as Markdown
GET
/v1/issues/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/issues/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "issue": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "number": 0,    "title": "string",    "description": "string",    "stateId": "871bb69c-5872-42b2-88b0-72e9da663aaa",    "state": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",      "name": "string",      "type": "backlog",      "color": "string",      "position": 0,      "description": "string",      "canDelete": true    },    "priority": 0,    "assigneeId": "665a9750-71bd-4b96-bacd-9efa4ae022dd",    "assignee": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",      "name": "string",      "email": "string",      "created": "2019-08-24T14:15:22Z"    },    "creatorId": "688ebf54-d343-4104-8711-82c2feac534a",    "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",    "cycleId": "811bdbf8-a42f-4f8c-b62e-39c77332ffe1",    "estimate": 0,    "position": 0,    "dueDate": "2019-08-24",    "labels": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",        "name": "string",        "color": "string"      }    ],    "childCount": 0,    "blockedByCount": 0,    "match": {      "field": "title",      "snippet": [        {          "text": "string",          "hit": true        }      ],      "commentId": "ee0469af-2fa1-4b7e-b5f1-8e711a95821b",      "author": "string",      "at": "2019-08-24T14:15:22Z"    },    "created": "2019-08-24T14:15:22Z",    "modified": "2019-08-24T14:15:22Z",    "completedAt": "2019-08-24T14:15:22Z",    "mentions": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "email": "string"      }    ],    "following": true,    "importedFrom": {      "namespace": "string",      "key": "string"    }  }}

Grouped issue counts

Totals for the issues the caller can see, grouped, honouring every filter listIssues honours because it shares the same query builder. A count walking a different predicate than the list beside it would put two numbers on screen that disagree, with neither looking wrong alone. Exists because a paged list cannot answer "how many". Group headers, board columns and the progress bars on the cycles and projects pages each need a real total per group, and one grouped query serves a whole screen where per-group requests would take one per column. Each group carries `total` and `done` - both, because a progress bar needs two numbers and fetching them separately would double the requests per bar. `done` counts issues whose state is of the `completed` type. `key` is always a string, including for priority, which groups on an integer column. A null key is a real group: unassigned, no project, or no cycle. Groups holding no issues are ABSENT rather than zero - the caller knows its own states, projects and cycles and can render those as zero, which the server cannot do for assignees.

Update an issue

Partial update. Empty string clears assigneeId / projectId / cycleId / parentId; estimate 0 clears the estimate; a malformed dueDate is 400 (never treated as "clear"). stateId must belong to the issue's team (else 400 "stateId does not belong to this issue's team"); moving to a completed-type state sets completedAt, moving anywhere else clears it. Property changes are recorded as activity entries, and an assignee change notifies the new assignee.