SelectQueue CustomField

Trying to get a User CustomField to appear in the SelectQueue file and
having no luck. Here’s what I’ve got:
my $CFObj = RT::CustomField->new($queue->CurrentUser);
$CFObj->LoadByNameAndQueue(Name => ‘DefaultQueue’, Queue => $queue->Id);
The name of the CustomField is ‘DefaultQueue’ and it’s setup as a User
CustomField versus a Ticket CustomField. I keep getting “undefined” when I
try to do $CFObj->Id after the 2nd line of code.
I’m beyond stumped and would appreciate any and all help.
Thanks a bunch everyone!
-rob

Rob Scheibel wrote:

Trying to get a User CustomField to appear in the SelectQueue file and
having no luck. Here’s what I’ve got:

my $CFObj = RT::CustomField->new($queue->CurrentUser);
$CFObj->LoadByNameAndQueue(Name => ‘DefaultQueue’, Queue => $queue->Id);

The name of the CustomField is ‘DefaultQueue’ and it’s setup as a User
CustomField versus a Ticket CustomField. I keep getting “undefined”
when I try to do $CFObj->Id after the 2nd line of code.

I’m beyond stumped and would appreciate any and all help.

If the the CF is to select a default queue, what $queue->Id are you
using there?? I think that you really want:
$CFObj->LoadByName(Name => ‘DefaultQueue’);
LoadByName with no Queue parameter on says that it will search all CFs
rather than just ticket CFs. I haven’t actually tested that though, and
I’m muddling my way through the same stuff at the moment.

Case in point: in the MIT RT manual, they show what seems to be a Queue
CF for turning spam filtering on and off. Is that really what it is? or
is it a case of making a Queue_Local.pm with more fields?

Cheers,

Howie

Trying to get a User CustomField to appear in the SelectQueue file and
having no luck. Here’s what I’ve got:

my $CFObj = RT::CustomField->new($queue->CurrentUser);
$CFObj->LoadByNameAndQueue(Name => ‘DefaultQueue’, Queue => $queue->Id);

The name of the CustomField is ‘DefaultQueue’ and it’s setup as a User
CustomField versus a Ticket CustomField. I keep getting “undefined” when I
If it user’s CF then it has no relation with any Queue. If CF is
assigned to User then it’s not assigned to Ticket/Transaction/Queue,
because Users are not grouped into queues.

try to do $CFObj->Id after the 2nd line of code.

I’m beyond stumped and would appreciate any and all help.

Thanks a bunch everyone!

-rob


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from
http://rtbook.bestpractical.com

Best regards, Ruslan.