[rt-users] Custom condition in scrip

Gene LeDuc gleduc at mail.sdsu.edu
Thu May 31 11:18:25 EDT 2007


Hi Shannon,

You don't need a user-defined action.  Try using this as your user-defined 
condition:

{ return $self->TransactionObj->Type eq 'comment' && 
$self->TicketObj->Status eq 'open'; }

Regards,
Gene

At 07:45 AM 5/31/2007, Shannon Adams wrote:
>I need help writing a custom condition for a script.  What I want to do is 
>"On Comment Notify AdminCcs as Comment", but only if the status is open 
>when the action takes place.  I know I need to change the condition to 
>"User Defined", but I am not sure what to put in the Custom condition 
>and/or the custom action preparation code sections.  Any help will be 
>greatly appreciated.


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 




More information about the rt-users mailing list