To all,
I'm trying to pre-set a ticket owner based on the value of an incoming CF that is set during ticket creation. What I have is this Condition: On Create Action: User-Defined Template: Blank Stage: TransactionBatch Custom Action Prep Code: my $ticket = $self->TicketObj; return unless ($ticket->OwnerObj->Name() eq 'Nobody' ); Custom Action Cleanup Code: # set up variables my $trans = $self->TransactionObj; my $ticket = $self->TicketObj; my $org = $ticket->FirstCustomFieldValue('CF Name') # condition setting owner ID on value of CF CF Name if ($org = 'XXX') { $ticket->SetOwner->Name('Persons User Name1', 'Force'); } elseif ($org = 'XY XY') { $ticket->SetOwner->Name('Persons User Name2', 'Force'); } return 1; The ticket owner is not being set. The ticket is created and all other fields, including the CF, are being created. Any ideas? Thanks. Kenn LBNL _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com