→ Having trouble accessing our new support portal or creating a ticket? Please notify our team here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dbiehler
Engaged Sweeper III
We would like to be able to have a report show any tickets they were created outside of our predefined Business hours.

Business Hours Are:
M-F 08:00 to 17:30
Sat Not a Workday
Sun Not a Workday

Thanks for any assistance.
2 REPLIES 2
dbiehler
Engaged Sweeper III
Thank You
Nick_VDB
Champion Sweeper III
The report below should give back the information that you are after. Since the working hours are the same for every work day we based the report on the hours set for Monday.

Instructions for adding this report to your Lansweeper installation can be found here. If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.



Select Distinct htblticket.ticketid,
'#' + Cast(htblticket.ticketid As nvarchar) As Ticket,
htblticket.subject,
htblticket.date As [Creation Date],
htblusers.name As [Ticket Creator]
From htblticket
Inner Join htblusers On htblusers.userid = htblticket.fromuserid,
htblbusinesshours
Where (DatePart(hh, htblticket.date) < DatePart(hh, htblbusinesshours.mon)) Or
(DatePart(hh, htblticket.date) > DatePart(hh, htblbusinesshours.mon2))
Order By htblticket.ticketid DESC

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now