/build/static/layout/Breadcrumb_cap_w.png

Need help with K1000 Helpdesk/ServiceDesk query to show all comments AND/OR Work Notes

Need help with K1000 Helpdesk/ServiceDesk query to show all comments AND/OR Work Notes for a given ticket and group and sort by Ticket_ID and maybe even on another report then sort by the Person entering the notes/comments.... depends on how im wanting to look at it.

Im basically trying to be able to create a report that will show me what was being done for a given time frame for all my techs.  The canned reports seem to only show Work Notes and dont include Comments and we enter both.  I would think this would be a pretty common request, but I cannot find another post on it.

Any help would be greatly appreciated.

I know comments come from the HD_Ticket_Change table and Work Notes from the HD_Work table, but I need to get all from each and group and sort probably by Ticket_ID, then date/time (and I know HD_Work uses either START field or MODIFIED field and the HD_Ticket_Change would use the TIMESTAMP field, so I dont know how to handle that either).

Thanks


1 Comment   [ + ] Show comment
  • This gets all the notes in there (obviously dont have the main ticket tables and data and user data in here yet), but is this headed in right direction or is there a better way to accomplish this sort of thing?

    (SELECT W.HD_Ticket_ID, W.User_ID, W.Note as WNote, W.Modified as D
    FROM HD_WORK as W
    WHERE W.HD_Ticket_ID=0993
    AND W.Voided_By IS NULL)
    UNION
    (SELECT C.HD_Ticket_ID, C.User_ID, C.Description, C.Timestamp as D
    FROM HD_TICKET_CHANGE C
    WHERE HD_Ticket_ID = 0993)
    ORDER BY D asc; - mwaters4 10 years ago

Answers (0)

Be the first to answer this question

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