[rt-users] Auto-creating ticket in Queue B from Queue A not working

Jonathan Rummel jrummel at imapp.com
Wed Jan 27 10:48:52 EST 2010


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) =
$new_tkt->Create(
     Queue => "Queue B",
     Subject => $tkt->Subject . " (Data Received)",
     Status => 'new',
     Requestor => $requestors;

return 1;
-- 
View this message in context: http://old.nabble.com/Auto-creating-ticket-in-Queue-B-from-Queue-A-not-working-tp27341712p27341712.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.




More information about the rt-users mailing list