Count tickets for up to 20 queries in one call
Return only numbers: {"counts":{"<label>":<number>}}, one per labelled query. Use it for any how-many question about tickets, one total or a breakdown (by status, priority, tag, assignee) with one query per bucket, instead of calling getTickets once per bucket. A query takes the status, priority, searchTerm, assigneeEmployeeId and tagIds of getTickets, and counts what getTickets would return for it (pagination.totalElements): top-level tickets only, so tasks are not counted. To list the tickets behind a count, use getTickets.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Body
Up to 20 ticket queries, each under a label you choose (letters, digits, "_" or "-"), e.g. {"pending":{"status":"PENDING"},"pendingHigh":{"status":"PENDING","priority":"HIGH"}}. A query takes the status, priority, searchTerm, assigneeEmployeeId and tagIds of getTickets, nothing else.
Response
The number of records matching each query, under the label the query was sent with