[rt-users] scrip not working

Benjamin Weser weser at osp-dd.de
Tue Sep 4 11:48:04 EDT 2007


Kenneth Crocker wrote:
> To all,
>
>
>     I need some help with a scrip. I have the following coded:
<snip>

> #----------------------------------------------------------------------------
>
> # Custom action preparation code:
> #----------------------------------------------------------------------------
>
>
> # set new Work-Status value
>
> my $ticket = $self->TicketObj;
> my $cf_obj = RT::CustomField->new($RT::SystemUser);
> my $cf_name = "Work-Status";
> my $cf_value = "Estimating Effort";
>
> $cf_obj->LoadByName( Name => $cf_name );
> $RT::Logger->debug( "Loaded \$cf_obj->Name = ". $cf_obj->Name() ."\n" );
> $cf_obj->AddValueForObject( Object=>$ticket, Content=>$cf_value, );
I don't have any experience in Perl coding but check the last line. Is
it possible that there's the error? There is no parameter behind the
last comma or the comma itself is to much maybe...

Regards,
Ben



More information about the rt-users mailing list