[rt-users] Notify specific owner on Correspond

Kurt Engle engle at 4j.lane.edu
Fri Feb 11 14:37:30 EST 2011


I have created a scrip that successfully notifies owners but now I need to be able to only run this scrip when a specific owner is listed on the ticket. I am guessing that I need a Custom Condition for this scrip. So far I have the following: 

Description: On Correspond notify specific owner 
Condition: User Defined 
Action: Notify Owner 
Template: Global template: Admin Correspondence 
Stage: Transaction Create 

Custom Condition: 
my $trans = $self->TransactionObj; 
my $ticket = $self->TicketObj; 
my $ownerid = $ticket->Owner; 

if ($ownerid = 34) { 
return 1; 
} 
else { 
return 0; 
} 


So far, this scrip does not discriminate based on the ticket owner. 

Thanks for your help 
-- 
Kurt Engle 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110211/09b89d17/attachment.htm>


More information about the rt-users mailing list