[rt-users] Scrip condition input request

Roy El-Hames rfh at pipex.net
Tue Dec 4 09:08:41 EST 2007


Matthew;

Why do you need the first if, as your condition is Queue change which 
should compensate for :

if ($self->TransactionObj->Type eq "Set" && $self->TransactionObj->Field eq "Queue") {

Also

$self->TransactionObj->NewValue eq "TechOps"

I am guessing this should be the Queue Id and not Name, ie number not label.

Regards;
Roy

Mathew Snyder wrote:
> I haven't been able to sort this out.  When I move a ticket from our triage
> queue to our TechOps queue it is still reset to new.  Anyone have any thoughts
> on how to get this working?
>
> Condition: On Queue Change
> Action: User Defined
> Template: Global template: Blank
> Stage: TransactionCreate
>
> Custom condition:
>
> Custom action preparation code:
> return 1;
>
> Custom action cleanup code:
> if ($self->TransactionObj->Type eq "Set" && $self->TransactionObj->Field eq
> "Queue") {
>   if ($self->TransactionObj->NewValue eq "TechOps" || $self->TicketObj->Owner !=
> 10) {
>     return 0;
>   }else{
>     $self->TicketObj->SetStatus('new');
>     return 1;
>   }
> }
>
>
> Keep up with me and what I'm up to: http://theillien.blogspot.com
> _______________________________________________
> 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
>
>   




More information about the rt-users mailing list