[rt-users] RT::Extension::SLA -- problems

William Graboyes william.graboyes at theportalgrp.com
Mon Oct 5 15:09:55 EDT 2009


Hi All,

I finally got time to come up with a solution to the problem I was having.

sub IsApplicable {
    my $self = shift;
    return 0 unless $self->SLAIsApplied;

    my $type = $self->TransactionObj->Type;
    if ( $type eq 'Create' || $type eq 'Correspond' ) {
        if ($self->TicketObj->FirstCustomFieldValue('SLA') eq 'Severity 4'){
            return 0;
        }
        if ($self->TicketObj->FirstCustomFieldValue('SLA') eq 'Severity 1'
|| $self->TicketObj->FirstCustomFieldValue('SLA') eq 'Severity ...
            return 1;
        }
        else {
            return 0;
        }
    }
    return 1 if $self->IsCustomFieldChange('SLA');
    return 0;
}
This does excactly what I want it to do.

Skips setting the Due date for Sev 4 tickets.

and sets the due dates on the rest.

Thanks,
Bill Graboyes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091005/02b0a7ad/attachment.htm>


More information about the rt-users mailing list