[rt-users] Help with Scrip to move a ticket into a new queue

Gilbert Rebeiro gilbert at dido.ca
Mon Aug 22 18:15:42 EDT 2011


I a queue called fr

There is a simple autoreply that is bound to this queue.

Scrip is setup:

Condition: OnCreate
Action: User defined
Template: Autoreply
Stage: TransactionCreate
Custom condition: return 1;
Custom action preparation code:

Custom action cleanup code:

  # Change queue
  my $newqueue = "1.General";
  my $T_Obj = $self->TicketObj;

  $RT::Logger->info("Auto assign ticket #". $T_Obj->id ." to queue #". 
$newqueue );
  my ($status, $msg) = $T_Obj->SetQueue($newqueue);
  unless ($status) {
      $RT::Logger->warning("unable to set new queue: $msg");
      return undef;
  return 1;

It is not a typo "1.General" it is the proper name of the queue that I 
want new tickets to be moved to.

Not sure what I am doing wrong but it doesn't work.
Can anyone tell me how to debug this?
Trace this?

What am I doing wrong?


More information about the rt-users mailing list