| RT-Extension-SLA documentation | Contained in the RT-Extension-SLA distribution. |
RT::Condition::SLA_RequireDueSet - checks if Due date require update
Checks if Due date require update. This should be done when we create a ticket and it has service level value or when we set service level.
| RT-Extension-SLA documentation | Contained in the RT-Extension-SLA distribution. |
use strict; use warnings; package RT::Condition::SLA_RequireDueSet; use base qw(RT::Condition::SLA);
sub IsApplicable { my $self = shift; return 0 unless $self->SLAIsApplied; my $type = $self->TransactionObj->Type; if ( $type eq 'Create' || $type eq 'Correspond' ) { return 1 if $self->TicketObj->FirstCustomFieldValue('SLA'); return 0; } return 1 if $self->IsCustomFieldChange('SLA'); return 0; } 1;