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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to