[rt-users] CustomCondition problem

Todd Chapman todd at chaka.net
Thu Oct 25 13:31:47 EDT 2007


$self->TicketObj->OwnerObj->Name eq 'Nobody'

On 10/25/07, Mario Gomide <mario.gomide at agricultura.gov.br> wrote:
>
> Hello List!
>
> I am trying to make a custom scrip work.
> The scrip is supposed to:
> Whenever a ticket is created in the X queue and the owner is set to
> "Nobody", the scrip action will Notify AdminCcs.
> This is my Scrip Condition:
> if( $self->TransactionObj->Type eq 'Create' &&
>     $self->TicketObj->Owner eq '10' ) {
>       return 1;
> } else {
>       return undef;
> }
>
> (As in http://wiki.bestpractical.com/view/OnCreateResolved)
>
> But it is not working... I see the log, and the ScripCondition is true,
> but no e-mail being sent...
>
> Any ideas?
>
> Thanks a lot!
>
> Mario Gomide
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>
> If you sign up for a new RT support contract before December 31, we'll
> take
> up to 20 percent off the price. This sale won't last long, so get in touch
> today.
>     Email us at sales at bestpractical.com or call us at +1 617 812 0745.
>
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20071025/663b54f4/attachment.htm>


More information about the rt-users mailing list