跳到主要内容

How can I specify a sub-status in stats? - 知识库 / Deskpro Legacy - Deskpro Support

WARNING: You're browsing documentation for an older version of Deskpro. For the most up-to-date version, see: How can I specify a Sub-status in Stats?

How can I specify a sub-status in stats?

作者列表

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

有帮助 没有帮助

74 人中 30 人认为这个页面有帮助

添加一条评论

请登录或注册以提交评论。

是否需要密码提醒?