[rt-users] Priority Check Condition
Ruslan Zakirov
ruslan.zakirov at gmail.com
Thu May 4 22:21:47 EDT 2006
On 5/3/06, Brad Pinkston <bradp at newmediagateway.com> wrote:
>
> 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.html
>
> 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.
More information about the rt-users
mailing list