Priority Check Condition

I am setting the Priority of a ticket through an email header using this
code as an example…

http://lists.bestpractical.com/pipermail/rt-users/2005-November/035291.h
tml

I would like to run a scrip after this priority is set and then send an
email to a pager is the priority is 4 or higher. I am sending this to
the pager using…

http://search.cpan.org/~ruz/RT-Action-NotifyGroup-0.02/lib/RT/Action/Not
ifyGroup.pm

The action to send to the pager works. But I can’t get the scrip to do
anything based on the priority. Has anyone tried anything like this?

Brad Pinkston

Senior Systems Administrator

New Media Gateway

O: 214.206.3485

M: 469.682.6487

F: 303.496.2712

I am setting the Priority of a ticket through an email header using this code as an example…

[rt-users] Setting "Let this user be granted rights" or calling SetPrivileged: mason_handler.fcgi => weeds

I would like to run a scrip after this priority is set and then send an email to a pager is the priority is 4 or higher. I am sending this to the pager using…

http://search.cpan.org/~ruz/RT-Action-NotifyGroup-0.02/lib/RT/Action/NotifyGroup.pm

The action to send to the pager works. But I can’t get the scrip to do anything based on the priority. Has anyone tried anything like this?

Use custom condition (untested):
return 0 unless $self->TransactionObj->Type eq ‘Set’;
return 0 unless $self->TransactionObj->Field eq ‘Priority’;
return 0 unless $self->TicketObj->Priority >= 4;
return 1;

Best regards, Ruslan.