[rt-users] Priority Based Scrip
lwang
lwang at clusterfs.com
Wed Mar 29 01:49:19 EST 2006
Phanoko wrote:
> I'm in need of a scrip that will check the ticket as
> it's created and if
> it's priority is 4 or greater than e-mail
> 'charliebrown at snoopy.com'
> This is what I've started with. I just copied and
> pasted from an hour
> script I found so I don't know if it is in any way
> correct. Anyone's
> help would be awesome. I'll even buy you lunch if you
> get out to
> Vegas. :)
>
>
>
> package RT::Condition::Priority;
>
> use strict;
> use base 'RT::Condition::Generic';
>
> sub IsApplicable {
> my $self = shift;
>
> return 0 unless $self->TicketObj->Priority >=
> 4;
>
> return 1;
> }
>
> 1;
>
This code doesn't work if you are running rt >= 3.5.5.
When the condition is checked, the priority is not set yet.
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Download a free sample chapter of RT Essentials from O'Reilly Media at http://rtbook.bestpractical.com
>
> WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
> San Francisco - Find out more at http://bestpractical.com/services/training.html
More information about the rt-users
mailing list