EaserixDocs
DevelopersAPI referenceTasksIssues

Create an issue

The issue number is per-team incrementing (max(number)+1, computed in a transaction) and position starts equal to the number. State resolution: an explicit stateId must belong to the target team (else 400 "stateId does not belong to that team"); omitted, the team's lowest-position state is used; a team with no states at all is 400 ("no workflow state available; create a state first"). priority defaults to 0 (0 none, 1 urgent, 2 high, 3 medium, 4 low); estimate 0 means "no estimate" and is stored as null. assigneeId must be an org member; projectId/cycleId/parentId must reference rows inside the caller's org (else 400 "invalid …Id"). Records a "created" activity and notifies the assignee (import-mode creates do not notify).

View as Markdown
POST
/v1/issues
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/issues" \  -H "Content-Type: application/json" \  -d '{    "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",    "title": "string"  }'
{  "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    },    "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"      }    ],    "created": "2019-08-24T14:15:22Z",    "modified": "2019-08-24T14:15:22Z",    "completedAt": "2019-08-24T14:15:22Z"  }}