GET
Get a ticket

Authorizations

Authorization
string
header
required

Obtain a token via POST /api/v1/oauth/token (password grant) and send it as Authorization: Bearer <token>.

Path Parameters

database
string
required

Project identifier (each project has its own database). Obtain it from GET /api/v2/data/projects.

ticketId
string
required

Response

The ticket document.

_id
string
_rev
string
project
string

Project (database) reference.

groupId
string

Map group reference.

map
string

Map the ticket is pinned on.

archived
string
tags
string[]
dates
object
content
object
state
object
plan
object
location
object

Position on the map. On a drawing, x/y are pixel coordinates in the zoom-0 tile plane — origin top-left, y downwards, running to renderinfo.width / 64 and renderinfo.height / 64 of the target map. latitude/longitude hold the GPS position of the phone the ticket was made on, written by the mobile apps when location services were on at that moment, and 0 otherwise — for a GIS, read these, not x/y. On the geo map the coordinates are geographic. See Place a ticket on a drawing.

participants
object
audits
object[]

Audits this ticket originated from.

comments
object[]

The ticket's comments, oldest first. Written through POST /tickets/{database}/{ticketId}/comments, and by an attachment upload.

customFields
object[]

The values filled in for the project's custom fields (Expert plan, at most three per project; defined in the project's customFields). Each entry repeats the field's definition (id, label, type and, for a choice field, richOptions) and adds the ticket's value. Absent, null or an empty array when no field was filled in; a field that was left empty has no value (or null).

Read-only through this API: POST /tickets/{database} and PATCH ignore it. See Read custom field values.