[rt-users] scrip not working

Kenneth Crocker KFCrocker at lbl.gov
Thu Sep 6 14:10:30 EDT 2007


Benjamin,


	No, I have that in several scrips that ARE working. Thanks anyway.


Kenn
LBNL

On 9/4/2007 8:48 AM, Benjamin Weser wrote:
> 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