<p>You need 'return 1;' in preparation code.</p>
<p>Regards, Ruslan. From phone.</p>
<div class="gmail_quote">23.08.2011 3:16 пользователь "Gilbert Rebeiro" <<a href="mailto:gilbert@dido.ca">gilbert@dido.ca</a>> написал:<br type="attribution">> Hi,<br>> <br>> I a queue called fr<br>
> <br>> There is a simple autoreply that is bound to this queue.<br>> <br>> Scrip is setup:<br>> <br>> Condition: OnCreate<br>> Action: User defined<br>> Template: Autoreply<br>> Stage: TransactionCreate<br>
> Custom condition: return 1;<br>> Custom action preparation code:<br>> <br>> Custom action cleanup code:<br>> <br>> # Change queue<br>> my $newqueue = "1.General";<br>> my $T_Obj = $self->TicketObj;<br>
> <br>> $RT::Logger->info("Auto assign ticket #". $T_Obj->id ." to queue #". <br>> $newqueue );<br>> my ($status, $msg) = $T_Obj->SetQueue($newqueue);<br>> unless ($status) {<br>
> $RT::Logger->warning("unable to set new queue: $msg");<br>> return undef;<br>> }<br>> return 1;<br>> <br>> It is not a typo "1.General" it is the proper name of the queue that I <br>
> want new tickets to be moved to.<br>> <br>> <br>> Not sure what I am doing wrong but it doesn't work.<br>> Can anyone tell me how to debug this?<br>> Trace this?<br>> <br>> What am I doing wrong?<br>
> <br>> Thanks,<br>> Gilbert.<br>> --------<br>> RT Training Sessions (<a href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>)<br>> * Chicago, IL, USA September 26 & 27, 2011<br>
> * San Francisco, CA, USA October 18 & 19, 2011<br>> * Washington DC, USA October 31 & November 1, 2011<br>> * Melbourne VIC, Australia November 28 & 29, 2011<br>> * Barcelona, Spain November 28 & 29, 2011<br>
</div>