[Rtir] custom RT:SLA time?

Ruediger Riediger ruediger.riediger at sun.com
Wed Sep 22 06:18:03 EDT 2004


Hello fellow CERT'lers,

SunCERT would like to set the due time of a ticket during creation to a 
more sophisticated value than "60 minutes" or "120 minutes". Currently, 
if a ticket is created in "Incident Reports", the "SetDates" scrip will 
set the due date according to the corresponding RT:SLA hash value for 
the business hours of _RTIR_SLA.

This is done via:

my $addminutes = $RT::SLA->{$sla};
[...]
my $due = $bizhours->add_seconds($date->Unix, $addminutes * 60);


Did anyone tried to have a function calculating the value for SLA 
instead of a plain value? E.g.

Full Service -> 60 min
Full Service: out of hours -> 60 min after start of next business hour
Reduced Service -> next business day, same time + 60 min


Best regards,

	Ruediger Riediger

--
Dr. Ruediger Riediger                   mailto:Ruediger.Riediger at Sun.com
NSG - SunCERT                                     mailto:SunCERT at Sun.com
TZ=ME(S)T [GMT+1/+2]                             http://suncert.central/
------------------------------------------------------------------------
NOTICE:  This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
------------------------------------------------------------------------
PGP 2048RSA/0x2C5020E9          964C E189 0FF0 8882  2BAB 65E2 6912 1FF2
------------------------------------------------------------------------
"What would be the point of cyphering messages that very clever enemies
  couldn't break? You'd end up not knowing what they thought you thought
  they were thinking..."

                                    Terry Pratchett, "The Fifth Elephant"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 540 bytes
Desc: OpenPGP digital signature
Url : http://lists.bestpractical.com/pipermail/rtir/attachments/20040922/0d0e103c/signature.pgp


More information about the Rtir mailing list