
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2021 03:03 PM
I am new to writing reports in lansweeper and need a report that tells who created and submitted each ticket. If possible can it also show from what department the user is in. I know there is a premade report that says the user who the ticket is related to but that isn't always who created the ticket as our helpdesk creates tickets for users occasionally. Any help would be greatly appreciated.
Labels:
- Labels:
-
General Discussion
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2021 12:29 PM
You can try this:
Select [htblhistory].userid, htblticket.ticketid, htblusers.name, htblusers.department from htblticket
inner join [htblhistory] on htblticket.ticketid = [htblhistory].ticketid
inner join htblusers on [htblhistory].userid = htblusers.userid
inner join [htblhistorytypes] on [htblhistorytypes].typeid = [htblhistory].typeid
where [htblhistorytypes].name = 'Ticket created'
Select [htblhistory].userid, htblticket.ticketid, htblusers.name, htblusers.department from htblticket
inner join [htblhistory] on htblticket.ticketid = [htblhistory].ticketid
inner join htblusers on [htblhistory].userid = htblusers.userid
inner join [htblhistorytypes] on [htblhistorytypes].typeid = [htblhistory].typeid
where [htblhistorytypes].name = 'Ticket created'
