
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2016 04:23 PM
Were is the agent worked hours stored? Looking to report on closed tickets the hours the agent has submitted.
"Time worked on (notes): 3 hours 30 minutes"
Thanks
"Time worked on (notes): 3 hours 30 minutes"
Thanks
Solved! Go to Solution.
Labels:
- Labels:
-
Report Center
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2016 04:58 PM
The worked time is stored in the 'htblnotes' table in the timeworked field.
The report below will give back the worked hours of the agent for public posts when the ticket is closed. Instructions for adding the report below to your Lansweeper installation can be found here.
The report below will give back the worked hours of the agent for public posts when the ticket is closed. Instructions for adding the report below to your Lansweeper installation can be found here.
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject As Subject,
htblusers.name As Agent,
Sum(htblnotes.timeworked) As [Time Worked (Mins)],
htblticketstates.statename
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers On htblusers.userid = htblagents.userid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Where htblticketstates.statename = 'closed' And htblnotes.notetype = 1
Group By htblticket.ticketid,
htblticket.subject,
htblusers.name,
htblticketstates.statename
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2016 04:58 PM
The worked time is stored in the 'htblnotes' table in the timeworked field.
The report below will give back the worked hours of the agent for public posts when the ticket is closed. Instructions for adding the report below to your Lansweeper installation can be found here.
The report below will give back the worked hours of the agent for public posts when the ticket is closed. Instructions for adding the report below to your Lansweeper installation can be found here.
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject As Subject,
htblusers.name As Agent,
Sum(htblnotes.timeworked) As [Time Worked (Mins)],
htblticketstates.statename
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers On htblusers.userid = htblagents.userid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Where htblticketstates.statename = 'closed' And htblnotes.notetype = 1
Group By htblticket.ticketid,
htblticket.subject,
htblusers.name,
htblticketstates.statename
