POST
Search tickets

Authorizations

Authorization
string
header
required

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

Query Parameters

database
string

One project to search, as an alternative to projects in the body.

page
integer
default:0

Zero-based page number. page * size may not exceed 10,000.

Required range: x >= 0
size
integer
default:20

Results per page.

Required range: x >= 1

Body

application/json

Filters for POST /tickets/search. Each field means the same as the query parameter of the same name on GET /tickets.

projects
string[]

Databases to search. Projects the caller has no role on contribute nothing.

includeFields
string[]

Ticket fields to return. Without it results carry only the id.

Example:
status
string

Comma-separated ticket states, matched exactly (case-sensitive). Pass completed,Completed to catch every finished ticket.

Example:

"completed,Completed"

includeActive
boolean
includeArchived
boolean
archived
boolean
tag
string
tagFilterType
enum<string>
Available options:
OR,
AND
noTags
boolean
progressLabels
string
progressFilterType
enum<string>
Available options:
OR,
AND
noProgressLabels
boolean
customFields
string[]

Custom field labels. Returns tickets that have a value filled in for these fields; it does not match on the value itself. Only on POST /tickets/search, not as a GET /tickets parameter. Return the values with includeFields: ["customFields"].

Example:
customFilterType
enum<string>

AND (default): a value for every field in customFields; OR: for at least one.

Available options:
AND,
OR
groupId
string
mapId
string
ticketId
string
auditId
string
filterRole
string
roleMailAddress
string
rangeFilter
string
dateFilterType
enum<string>
Available options:
AND,
OR
fromDate
string<date-time>
untilDate
string<date-time>
dateRangeFilter
enum<string>
Available options:
overdue
searchByTitle
string
searchByDescription
string
searchByResponsible
string
searchByAssignees
string
searchById
string
isRecurrent
string

Send "true" for recurring tickets only. Leave it out otherwise; any non-empty value, "false" included, counts as true.

sortby
string
sortOrder
enum<string>
Available options:
asc,
desc
aggregate
string

Response

Search envelope; each result holds id and the includeFields you asked for.

Standard envelope returned by all list and search endpoints.

size
integer

Number of results on this page.

page
integer

Current page (zero-based).

hits
integer

Total number of matching documents.

results
object[]
aggregations
object

Facet counts, present when the aggregate parameter was used.