/build/static/layout/Breadcrumb_cap_w.png

Report commonly used K1000 ticket categories

Is it possible to run a report showing the top 5-10 ticket categories that have been chosen and the number of tickets for each one?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: grayematter 10 years ago
5th Degree Black Belt
1

The following will give you ticket counts, sorted by queue then category.

SELECT HD_QUEUE.NAME as 'Queue',
HD_CATEGORY.NAME as 'Category',
count(HD_TICKET.id) as 'Count'
FROM HD_QUEUE
INNER JOIN (HD_TICKET
INNER JOIN HD_CATEGORY ON HD_TICKET.HD_CATEGORY_ID = HD_CATEGORY.ID)
ON HD_QUEUE.ID = HD_TICKET.HD_QUEUE_ID
Group BY HD_QUEUE.NAME, HD_CATEGORY.NAME
ORDER BY HD_QUEUE.NAME, HD_CATEGORY.NAME;

If you are looking for a single queue, you can add that as a where condition.

For the top 5 from any queue, you would change the order by to

order by count(HD_TICKET.id) desc limit 5

Getting the data you are seeking will depend on exactly how your Service Desk module is configured.


Comments:
  • Thank you very much, this is exactly what I needed - jbunnell 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ