[rt-users] Setting Ticket Owner name

Stephen Turner sturner at MIT.EDU
Mon Oct 27 15:44:52 EDT 2008


Kenn,

On Mon, 27 Oct 2008 15:35:40 -0400, Kenneth Crocker <KFCrocker at lbl.gov>  
wrote:
>
> Custom Action Prep Code:
>
> my $ticket = $self->TicketObj;
> return unless ($ticket->OwnerObj->Name() eq 'Nobody' );
>

You'll need to return 1 if you want to continue to action cleanup, 0  
otherwise.


> Custom Action Cleanup Code:
>
>       $ticket->SetOwner->Name('Persons User Name1', 'Force');

I think this should work:

$ticket->SetOwner ('Persons User Name1', 'Force');

Steve

-- 
Stephen Turner
Senior Programmer/Analyst - SAIS
MIT IS&T



More information about the rt-users mailing list