Custom field value source

I have a custom field that I currently have set to Privileged Users:

Set(@CustomFieldValuesSources, “RT::CustomFieldValues::PrivUsers”);

I’d like to change that to only list users that have rights on the queue the CF is being used on. It’s a global CF currently and used on multiple queues.

I looked at External.pm/Groups.pm and while I “kinda get it”, I’m not a diehard programmer, so I’m at a bit of a loss. Hoping someone has done this and will share their code.

Thanks!
Brent

I have a custom field that I currently have set to Privileged Users:****


Set(@CustomFieldValuesSources, “RT::CustomFieldValues::PrivUsers”);****


I’d like to change that to only list users that have rights on the queue
the CF is being used on. It’s a global CF currently and used on multiple
queues.****


I looked at External.pm/Groups.pm and while I “kinda get it”, I’m not a
diehard programmer, so I’m at a bit of a loss. Hoping someone has done this
and will share their code.

Sorry, but at this moment there are not much of context in external custom
field values, so without dirty hacks you can not know anything about
environment. One option is to look at request arguments and see which page
it is and look for id.



Thanks!****

Brent****


RT Training in Seattle, June 19-20: Training — Best Practical Solutions

Best regards, Ruslan.