Hi guys!
I want to create a custom scrip to forward a ticket (including the attachment) upon creation if the subject line matches a certain criteria. Could someone please point me in the right direction?
Here’s my prep code:
if( $self->TicketObj->Subject =~ "test" ) {
my $txn = $self->TransactionObj;
$self->TicketObj->Forward( Transaction => $txn, To => 'myemail@example.com' );
return 1;
}
return 0;
It’s not working, and I’m not sure what the issue is, as I’m following the docs for RT::Ticket::Forward
(RT::Ticket - RT 5.0.1 Documentation - Best Practical)
Could anyone provide some guidance?
Thanks