[rt-users] Initiate Template via custom scrip action

Kristian Davies kristian.davies at gmail.com
Tue Apr 20 12:31:36 EDT 2010


I've created a scrip:

Condition: User Defined
Action: User Defined
Template: Global Template: Blank
Stage: TransactionCreate

Custom Condition:

my $Transaction = $self->TransactionObj;
my $CreatorId = $Transaction->CreatorObj->Id;

if ( $self->TransactionObj->Type eq "Create" &&
!$self->TicketObj->QueueObj->IsAdminCc($CreatorId) ){
return 1;
}

Custom action prep code:

my $Ticket = $self->TicketObj;
my $newqueue = "23";

$Ticket->SetQueue($newqueue);

Custom action cleanup code:

return 1;


Basically I just need to fire off a template to those requestors who's
tickets are moved via this scrip.


Cheers,
Kristian



More information about the rt-users mailing list