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");
           }
}
_______________________________________________
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

Reply via email to