On 5/3/06, Brad Pinkston <[EMAIL PROTECTED]> 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.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to