Subject: | Issue with DueDate |
Date: | Mon, 10 Jun 2013 10:36:33 +0100 |
To: | "bug-RT-Extension-SLA [...] rt.cpan.org" <bug-RT-Extension-SLA [...] rt.cpan.org> |
From: | Mathew Hillyard <Mathew.Hillyard [...] cancer.org.uk> |
Hi,
I am using RT 4.0.5 and have installed the SLA extension.
The issue I have is that the DueDate being created is not the correct
number of hours from the Starts date.
For example:
Ticket Created 2013/06/04 11:30:22
SLA of High (60*8 business minutes) chosen. This equates to 8 business
hours
RT sets a DueDate of 2013/06/05 10:30:22. This is 7 business hours, not 8.
Ticket Created 2013/05/17 13:34:42
SLA of Medium (60*8*3 business minutes) chosen. This equates to 24
business hours
RT sets a DueDate of 2013/05/22 10:34:42. This is 21 business hours, not
24.
Ticket Created 2013/06/04 09:54:22
SLA of Low (60*8*5 business minutes) chosen. This equates to 40 business
hours
RT sets DueDate of 2013/06/10 13:54:22. This is 36 business hours, not 40
business hours
Ticket Created 2013/05/10 14:52:12
SLA of Service (60*8*10 business minutes) chosen. This equates to 80
business hours
RT sets DueDate of 2013/05/23 13:52:12. This is 71 business hours, not 80
business hours
This is the code I have added to RT_SiteConfig.pm (I have applied it to
the three queues General, 44lif and CHL and have therefore not chosen a
global default):
%RT::ServiceAgreements = (
QueueDefault => {
'General' => 'Low',
'44lif' => 'Low',
'CHL' => 'Low',
},
Levels => {
'Critical' => {
Resolve => { BusinessMinutes => 60*4 }, # 4 business hours
},
'High' => {
Resolve => { BusinessMinutes => 60*8 }, # 1 business day
},
'Medium' => {
Resolve => { BusinessMinutes => 60*8*3 }, # 3 business days
},
'Low' => {
Resolve => { BusinessMinutes => 60*8*5 }, # 5 business days
},
'Service' => {
Resolve => { BusinessMinutes => 60*8*10 }, # 10 business days
},
},
);
%RT::ServiceBusinessHours = (
0 => { Name => 'Sunday', Start => 'undef', End => 'undef' },
1 => { Name => 'Monday', Start => '09:00', End => '17:00' },
2 => { Name => 'Tuesday', Start => '09:00', End => '17:00' },
3 => { Name => 'Wednesday', Start => '09:00', End => '17:00' },
4 => { Name => 'Thursday', Start => '09:00', End => '17:00' },
5 => { Name => 'Friday', Start => '09:00', End => '17:00' },
6 => { Name => 'Saturday', Start => 'undef', End => 'undef' },
# set bank holidays for 2013-2015
holidays => [qw(2013-01-01 2013-03-29 2013-04-01 2013-05-06 2013-05-27
2013-08-26 2013-12-25 2013-12-26 2014-01-01 2014-04-18 2014-04-21
2014-05-05 2014-05-26 2014-08-25 2014-12-25 2014-12-26 2015-01-01
2015-04-23 2015-04-06 2015-05-04 2015-05-25 2015-08-31 2015-12-25
2015-12-26)],
);
I can see a CF in RT for SLA and have created definitions for the Levels
as per RT::ServiceAgreements above.
Kind regards
Mathew Hillyard
Senior IT Support Officer
Cancer Research UK, London Research Institute
Tel (020) 7269 3631/(01707) 62 5907
NOTICE AND DISCLAIMER
This e-mail (including any attachments) is intended for the above-named person(s). If you are not the intended recipient, notify the sender immediately, delete this email from your system and do not disclose or use for any purpose.
We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you.
Cancer Research UK
Registered charity in England and Wales (1089464), Scotland (SC041666) and the Isle of Man (1103)
A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F).
Registered Office Address: Angel Building, 407 St John Street, London EC1V 4AD.