[rt-users] Priority Based Scrip
    Phanoko 
    phanoko at yahoo.com
       
    Wed Nov 30 11:17:35 EST 2005
    
    
  
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;
		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs
    
    
More information about the rt-users
mailing list