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
_______________________________________________
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