[rt-users] Tickets::LimitCustomField

Matthias Reif matthias at veritechcorp.com.au
Sat May 7 07:19:18 EDT 2005


Hi,

I am trying to query tickets using a limit based on custom fields under RT 
3.2.3. I use the following code:

$tickets = new RT::Tickets( $RT::SystemUser );
$tickets->LimitCustomField( VALUE => '123',
                         CUSTOMFIELD => 'Follow Up',
                         OPERATOR => '=' );

When I run it, I get the following compile error:

[Sat May  7 01:10:35 2005] [error]: Unknown field: CF. at 
/home/rt/rt-3.2.3/lib/RT/Tickets_Overlay_SQL.pm line 306.
  (/home/rt/rt-3.2.3/lib/RT/Tickets_Overlay_SQL.pm:483)


However, the same code seems to work perfectly under RT 3.4.2.

Is this a limitation in 3.2 or do I need to write the code differently to 
achieve the desired result?

Thanks
Matt




More information about the rt-users mailing list