Hi Mark

 

Use the business time add functionality to add 0 seconds to your time.  If
it is in business hours you will get back the same date/time.  If it is
outside business hours you will get back the start of the next business
hours segment.  So if the dates are different, you are outside working hours

 

Something like Application-Bus-Time-Add "startTime" "0" "1"
"holidayScheduleName" "workdayScheduleName"

 

David Sanders

Solution Architect

Enterprise Service Suite @ Work / e-ServiceSuite 

 

tel +44 1494 468980

mobile +44 7710 377761

email [email protected]

 

web      http://www.westoverconsulting.co.uk
<http://www.westoverconsulting.co.uk/> 

 

            http://www.e-servicesuite.co.uk
<http://www.e-servicesuite.co.uk/> 

 

            


 <http://e-servicesuite.com/> Description:
cid:[email protected]

 


ITIL - SaaS - On Premise

 

 

From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Brittain, Mark
Sent: 24 April 2012 14:15
To: [email protected]
Subject: is it after hours?

 

** 

Hi All,

 

Currently when an incident is created I have a filter that sets the day of
the week, and hour of the day. Then there is a second set fields that 'Check
Date' =  $DATE$ and then checks this against the Business Time Holiday. If
it is a holiday then sets the 'Holiday' field to Yes. Then there is an
escalation that sends a notification under certain conditions including

 

(Week >1 AND Week <7) AND (Hour > 8 AND Hour < 18) AND Holiday = NULL

 

I am thinking I can use business time and reduce all of this down to one
field 'Business Hours' - Yes/No. Just have not figured out how to do it.
Would be grateful for any suggestions.

 

ARS 6.3 patch 20

 

Thanks

Mark

 

Mark Brittain

Remedy Developer

ITILv3 Foundation

NaviSite - A Time Warner Cable Company

[email protected]

Office: 315-453-2912 x5335

Mobile: 315-317-2897

 

 

  _____  

This e-mail is the property of NaviSite, Inc. It is intended only for the
person or entity to which it is addressed and may contain information that
is privileged, confidential, or otherwise protected from disclosure.
Distribution or copying of this e-mail, or the information contained herein,
to anyone other than the intended recipient is prohibited.

_attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_ 


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

<<image001.gif>>

Reply via email to