Custom condition in scrip

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.

Thanks,
Shannon Adams

Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

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