[rt-users] LimitCustomField - usage query
Brett, Colin
Colin.Brett at proquest.co.uk
Wed Jun 11 09:16:04 EDT 2003
Hi,
I have set up a custom field which I would like to manipulate, but can't
work out how.
The field is "Cat" (short for category) which is a "select one value" type
where the values are Query , Normal , Urgent or Critical, reflecting the
urgency of the request. I would like to escalate each Cat at a different
rate, using a modified version of Jesse Vincent's escalator.pl script. The
key part of this script is shown below:
use RT::Tickets_Overlay;
my $tickets = new RT::Tickets($RT::SystemUser);
$tickets->LimitStatus(VALUE => 'open');
$tickets->LimitStatus(VALUE => 'new');
$tickets->LimitCustomField();
The question is, what parameters should I be passing to the LimitCustomField
subroutine? I've tried variations on the theme (as gleaned from the
LimitCustomField subroutine in RT::Tickets_Overlay)
$tickets->LimitCustomField(CUSTOMFIELD => 'Cat' , VALUE => 'Normal');
And get errors of the form:
[Wed Jun 11 13:13:03 2003] [error]: Unknown field: CF. at
/opt/rt3/lib/RT/Tickets_Overlay_SQL.pm line 216.
(/opt/rt3/lib/RT/Tickets_Overlay_SQL.pm:302)
I'm something of a Perl newbie and somewhat out of my depth here. Any
pointers would be gratefully appreciated.
Regards,
---
Colin Brett, UNIX/Oracle Administrator.
ProQuest Information & Learning
Tel: +44 (0)1223 271371
Email: colin.brett at proquest.co.uk
---
"And then one day you find, ten years have got behind you,
No-one told you when to run, you missed the starting gun."
More information about the rt-users
mailing list