[rt-users] Setting Ticket Owner name
Kenneth Crocker
KFCrocker at lbl.gov
Mon Oct 27 16:43:56 EDT 2008
[forwarding to list]
Stephen,
I thought that "return unless" defaulted to "return 1 unless", but I
changed it anyway.
I tried your "set" code and that didn't work. Any other ideas?
Kenn
LBNL
On 10/27/2008 12:44 PM, Stephen Turner wrote:
> 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
>
More information about the rt-users
mailing list