| RT-Extension-SLA documentation | Contained in the RT-Extension-SLA distribution. |
Applies the current scrip when SLA is not set. Returns true on create, but only if SLA CustomField is applied to the ticket and it has no value set.
| RT-Extension-SLA documentation | Contained in the RT-Extension-SLA distribution. |
use strict; use warnings; package RT::Condition::SLA_RequireDefault; use base qw(RT::Condition::SLA);
sub IsApplicable { my $self = shift; return 0 unless $self->TransactionObj->Type eq 'Create'; return 0 if $self->TicketObj->FirstCustomFieldValue('SLA'); return 0 unless $self->SLAIsApplied; return 1; } 1;