Report showing tickets closed by user, year to date.
06/01/2018 299 views
So I currently was able to generate a report that breaks down tickets closed by owner by month, and it is great, buy my VP wants it much more high level, and only show year to date, with no monthly breakdown. I am not skilled when it comes to SQL so I was hoping someone here has experience with a similar report.
Answer Chosen by the Author
Please log in to answer
SELECT O.FULL_NAME as Engineer,
count(HD_TICKET.ID) AS Count_of_Tickets
JOIN HD_STATUS ON (HD_STATUS.ID = HD_TICKET.HD_STATUS_ID)
LEFT JOIN USER O ON (O.ID = HD_TICKET.OWNER_ID)
WHERE (YEAR(HD_TICKET.CREATED) = YEAR(NOW()))
AND (HD_STATUS.NAME = 'Closed')
GROUP BY Engineer
Answered 06/01/2018 by: Druis