/build/static/layout/Breadcrumb_cap_w.png

Work Logged For Closed Tickets

Has anyone came up with a cusstom report to show work logged for closed tickets for last X number of days?

I have been backing my head up against a wall trying to figure this out even though it should be simple.

The pre-built reports for tickets closed in past x days by owner is good and the one showing work log in past x days by owner is good but I essentially need to combine those so that I have the closed tickets for past x days sorted and grouped by owner but I also need it to show all work log entries and time for those closed tickets.

Any help with this would be appreciated.

It would also be nice if the built in report wizard would give more choices in the tables and fields you can generate reports off of because getting every piece of syntax in a SQL quiery correct is so tedious.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: craig.thatcher 12 years ago
Orange Belt
0
The following will give you owners for the last 31 days with closed tickets and hours worked.

Select U.USER_NAME, COUNT(*) AS TICKETS_CLOSED_LAST_31_DAYS, SUM(CAST(HOUR(TIMEDIFF(STOP, START))+ IF((MINUTE(TIMEDIFF(STOP, START)) = 0), 0, (MINUTE(TIMEDIFF(STOP, START))/60)) + ADJUSTMENT_HOURS AS DECIMAL(10,2))) AS HOURS_WORKED_LAST_31_DAYS
FROM HD_TICKET left join HD_STATUS on
HD_STATUS_ID = HD_STATUS.ID
LEFT JOIN USER U ON
U.ID = HD_TICKET.OWNER_ID
LEFT JOIN HD_WORK ON
HD_TICKET.ID = HD_WORK.HD_TICKET_ID
where HD_STATUS.STATE = 'closed' and HD_TICKET.TIME_CLOSED > DATE_SUB(NOW(), INTERVAL 31 day)
GROUP BY U.USER_NAME
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

View more:

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