Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

CustomFieldValues

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


gbuday at gmail

Aug 14, 2012, 12:27 AM

Post #1 of 2 (185 views)
Permalink
CustomFieldValues

Hi there,

I was able to log a custom field value in a scrip:

my $user=$self->TransactionObj->CreatorObj;

my $cfvs = $user->CustomFieldValues('107');
while(my $cfv = $cfvs->Next) {
$RT::Logger->info("cfv->Content=" . $cfv->Content) if length $cfv->Content;
}

return 1;

Beside ->Content, is there a field that gives back the number I set in
the custom field definition? It would be more robust to handle.

- Gergely


ptomblin at xcski

Aug 14, 2012, 4:05 AM

Post #2 of 2 (166 views)
Permalink
Re: CustomFieldValues [In reply to]

On Tue, Aug 14, 2012 at 3:27 AM, Gergely Buday <gbuday [at] gmail> wrote:

> Hi there,
>
> I was able to log a custom field value in a scrip:
>
> my $user=$self->TransactionObj->CreatorObj;
>
> my $cfvs = $user->CustomFieldValues('107');
> while(my $cfv = $cfvs->Next) {
> $RT::Logger->info("cfv->Content=" . $cfv->Content) if length
> $cfv->Content;
> }
>
> return 1;
>
> Beside ->Content, is there a field that gives back the number I set in
> the custom field definition? It would be more robust to handle.
>
>
I just use $value = $ticket->FirstCustomFieldValue("field_name");


--
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.