<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Excellent,, , it worked.<br>
Many thanks to all that helped.<br>
<br>
On 23/08/2011 11:14 AM, Kenneth Crocker wrote:
<blockquote
cite="mid:CABqKps95RrjhMuEC0ai7R+99PCrqdm_HD3PSyY_8Z+cVNYuhZA@mail.gmail.com"
type="cite">Gilbert,<br>
<br>
You might also want to remove the "return 1;" in the custom
Condition code since you have already set the condition as
"OnCreate". It isn't needed. I don't know if it messes anything
up, but I wouldn't leave anything in a coded area that isn't
needed.<br>
<br>
Hope this helps.<br>
<br>
Kenn<br>
LBNL<br>
<br>
<div class="gmail_quote">On Tue, Aug 23, 2011 at 4:27 AM, Ruslan
Zakirov <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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 moz-do-not-send="true"
href="mailto:gilbert@dido.ca" target="_blank">gilbert@dido.ca</a>>
написал:
<div>
<div class="h5"><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 moz-do-not-send="true"
href="http://bestpractical.com/services/training.html"
target="_blank">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>
</div>
</div>
<br>
--------<br>
RT Training Sessions (<a moz-do-not-send="true"
href="http://bestpractical.com/services/training.html"
target="_blank">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>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--------
RT Training Sessions (<a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>)
* Chicago, IL, USA — September 26 & 27, 2011
* San Francisco, CA, USA — October 18 & 19, 2011
* Washington DC, USA — October 31 & November 1, 2011
* Melbourne VIC, Australia — November 28 & 29, 2011
* Barcelona, Spain — November 28 & 29, 2011</pre>
</blockquote>
</body>
</html>