/build/static/layout/Breadcrumb_cap_w.png

Report: Service Desk ticket by time of day?

Is there a way to report on tickets submitted during a certain window of time in a day without doing SQL? If SQL is required, does anyone have a cheat sheet I could use?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: naturboy1975 12 years ago
Yellow Belt
1
Here is some simple MySQL to get you started:
Select
extract(day from `CREATED`) day,
extract(hour from `CREATED`) hour,
count(*)
from
`ORG1`.`HD_TICKET`
where month(created) = 7
group by extract(day from`CREATED`), extract(hour from`CREATED`);

It uses two functions to help you:
Extract allows a part of the timestamp field to be returned. Further documentation of the parts of the timestamp value that can be extracted are posted to: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-add

The other function, month() is only one example of the same type of function that truncates the timestamp into portions that can be grouped. I selected all tickets that were created in July (note that the year is NOT selected), and grouped the count of tickets by the day and hour of the day in which they were created.

Output looks like:
'day','hour','count'
'1', '3', '2'
'1', '6', '1'
'1', '7', '1'
'1', '9', '7'
Posted by: KevinG 12 years ago
Red Belt
0
What exact information/fields from the tickets do you want to display in this report?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

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