I have a custom scrip that were trying to get to fire on a Queue Change to Round Robin the owner assignment. <br><br>Description: QueueChangeHCAutoAssign<br>Condition: On Queue Change<br>Action: user Defined<br>Template: Global Template Transaction
<br>Stage: Transaction Complete<br><br>Custom Condition: return 1;<br>Custom Action Preperation Code: return 1;<br>Custom Action Cleanup Code: <br>my $QueueName = "HealthCheck/Follow-up";<br>return 1 unless $self->TicketObj->QueueObj->Name eq $QueueName;
<br>my %hash = (<br> '0' => 'user0',<br> '1' => 'user1',<br> '2' => 'user2',<br> '3' => 'user3',<br> '4' => 'user4',<br> '5' => 'user5',<br> '6' => 'user6',
<br> '7' => 'user7');<br><br>my $user = $hash{int(rand(8))};<br><br>$RT::Logger->info("Auto assigning ticket #". $self->TicketObj->id ." to user $user" );<br><br>my ($status, $msg) = $self->TicketObj->SetOwner( $user );
<br><pre class="formatter_pre">unless( $status ) {<br> $RT::Logger->warning( "Impossible to assign the ticket to $user: $msg" );<br>return undef;<br>}</pre>1;<br><br>Looking at the log, it seems as if this Global Scrip is never firing? Is there a problem with the On Queue Change, or Do I have something Borked up here?
<br><br>Thanks,<br><br>Rodney<br>