/build/static/layout/Breadcrumb_cap_w.png

Need Report that shows created tickets by Submitter/Group label

We are just settling in with our K1000 and would like to see how a report like this would look. Appreciate any help, thanks.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: JasonEgg 8 years ago
Red Belt
1
Here is a query that returns the count of tickets created for the past 30 days by the submitter's user label(s):
select L.NAME AS 'User Label',
       COUNT(*) AS 'Tickets created past 30 days'
from   HD_TICKET  T
       join `USER` U on T.SUBMITTER_ID = U.ID
       join USER_LABEL_JT UL on UL.USER_ID = U.ID
       join LABEL L on L.ID = UL.LABEL_ID
where T.CREATED > NOW() - INTERVAL 30 DAY
group by L.NAME

In my environment users can have multiple labels, so totaling the right column would give me an inflated number instead of the actual total number of tickets created during the specified interval.

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