Auto-creating ticket in Queue B from Queue A not working

Hi All,

What I want to do is have a new ticket auto-created in ‘Queue B’ with no
owner once a certain CF value is selected in a ticket in ‘Queue A’. Here is
what I have so far, and I feel like this should work but it is not (nothing
happens). Please help! Thanks!

(Note: this scrip is written in ‘Queue A’)

Custom condition:
if ($self->TicketObj->FirstCustomFieldValue(‘Progress’) eq ‘Data Received’)
return 1;
return 0;

Custom paction preparation code:
return 1;

Custom action cleanup code:
my $trans = $self->TransactionObj;
my $tkt = $self->TicketObj;

my $requestors = [ $tkt->Requestors->MemberEmailAddresses];
my $new_tkt = RT::Ticket->new($RT::SystemUser); my ($id, $msg) =
Queue => “Queue B”,
Subject => $tkt->Subject . " (Data Received)",
Status => ‘new’,
Requestor => $requestors;

return 1;
View this message in context: