didn't work for me, tickets are still unowned. anywhere I can debug?<br><br><div><span class="gmail_quote">On 4/6/06, <b class="gmail_sendername">Jason Fenner</b> <<a href="mailto:jfenner@vitamix.com">jfenner@vitamix.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try this on for size.<br><br>Add this scrip to the queue you want.<br>
<br>Condition: OnCreate<br>Template: Blank<br>Action: UserDefined<br>---------------------------------------------BEGIN<br>SCRIP------------------------------------<br># get actor ID<br>  #my $Actor = $self->TransactionObj->Creator;
<br>  #Set $Actor below to user you want to auto set to.<br>   my $Actor = "Username";<br><br>  # if actor is RT_SystemUser then get out of here<br>  #return 1 if $Actor == $RT::SystemUser->id;<br><br>  # get out unless ticket owner is nobody
<br>  #return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;<br><br>  # ok, try to change owner<br>  $RT::Logger->info("Auto assign ticket #". $self->TicketObj->id ." to<br>user #". $Actor );
<br>  my ($status, $msg) = $self->TicketObj->SetOwner( $Actor );<br>  unless( $status ) {<br>    $RT::Logger->error( "Impossible to assign the ticket to $Actor: $msg" );<br>    return undef;<br>  }<br>  return 1;
<br><br>----------------------------------END<br>SCRIP---------------------------------------------------------<br><br>Mustafa Badawi wrote:<br><br>>I want a certain support engineer to be the default owner of all tickets
<br>>created in a certain queue. I have tried doing this using scrips (on create<br>>set owner to the specific rt user). The tickets, however. remain unowned and<br>>no errors are displayed.<br>><br>>$self->TicketObj->owner eq 'engineer';
<br>><br>>Is there another way to set the default owner on a certain queue and if not,<br>>what is wrong with my scrip?<br>><br>>thanks in advance<br>><br>><br>><br>>------------------------------------------------------------------------
<br>><br>>_______________________________________________<br>><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>>
<br>>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br>><br>><br>>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
<br>>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br>><br>><br>>We're hiring! Come hack Perl for Best Practical: <a href="http://bestpractical.com/about/jobs.html">
http://bestpractical.com/about/jobs.html</a><br>><br><br><br></blockquote></div><br>