Passa al contenuto principale

How can I specify a sub-status in stats? - Developer & Reporting / Creating Reports - Deskpro Support

How can I specify a sub-status in stats?

Elenco degli autori

You can specify sub-statuses in the WHERE clause like so:

WHERE tickets.ticket_status.id = 4

The sub-status ID can be retrieved using the API or by going to Admin > Tickets > Statuses and clicking on the Sub-status. The ID will appear in the URL bar.



Below is an example:

SELECT tickets.id, tickets.subject, tickets.ticket_status.title

FROM tickets

WHERE tickets.ticket_status.id = 3


We have used tickets.ticket_status.title in the SELECT clause to display the correct sub-status name.



Utile Inutile

4 su 9 persone hanno trovato utile questa pagina

Aggiungi un commento

Accedi o registrati per inviare un commento.

Hai dimenticato la password?