Hello,
I’d like to modify the requestor when a new ticket is created. I’m trying
next, but I’m not sure:
Condition
User-defined
Action
User-defined (should it be “Create Ticket”??
Template
empty
Custom condition
my $trans = $self->TransactionObj;
return 0 unless $trans->Field eq ‘Owner’;
return 1 if $trans->OldValue == RT::Nobody( )->id( );
return 0;
Preparation code of customized action
$self->$TransactionObj->SetRequestor(“e-mail”);
$self->$TransactionObj->AddWatcher(Type => “Requestor”, Email => “e-mail”);
$self->TicketObj->AddWatcher( Type => “Cc”, Email => “e-mail”);
return 1;
Cleanup code od customized action
return 1;
I don’t understand “custom condition”, and in the “preparation code” I
don’t know if I have to use all lines…
Thanks a lot!
ALBERTO VILLANUEVA VAL
Consultor
Altran
ParqueEmpresarial Las Mercedes, Edificio 1
C/ Campezo, 1. 28022 Madrid
Tel : + 34 91 744 46 00
Fax: + 34 91 415 24 57
www.altran.es