Get ticket stats
glpi_get_ticket_statsCount GLPI tickets by status—New, Processing, Pending, Solved, Closed—and total without listing them; apply optional criteria to narrow results by entity, requester, technician, or category.
Instructions
Ticket counts per status (New, Processing, Pending, Solved, Closed) plus the total, without listing the tickets. Optional criteria narrow the scope, e.g. one entity: [{field: 80, searchtype: 'equals', value: }] (Ticket search option IDs: 80 = entity, 4 = requester, 5 = technician, 7 = category; same criteria shape as glpi_search).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | No | Optional criteria to narrow the scope: array of {field, searchtype, value, link} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |