[rt-users] Setting Custom Field Value

Carlos Silva cmsilva at mobicomp.com
Wed Apr 16 05:06:54 EDT 2008

Hi, I know this should be pretty simple but I'm stuck, and I've tried 
google and reading the code documentation and experimenting and I've not 
been able to do it.
All I want to do is set this CF with the value "Reported" inside a scrip.
Thanks in advance.

if ($cf->Name eq "Error Status") {
           $v = $ticket->CustomFieldValues($cf->Id());
           if (defined(my $t3 = $v->Next())) {
                 $state = $t3->Content();
           else {
                 $state = "Reported";
                 ### $cf->SetCustomFieldValue("Reported");

More information about the rt-users mailing list