[rt-users] custom field value source

Ruslan Zakirov ruz at bestpractical.com
Thu Jun 6 09:01:07 EDT 2013


On Thu, Jun 6, 2013 at 4:56 AM, Brent Wiese <bwiese at elementps.com> wrote:

>  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: http://bestpractical.com/training
>



-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130606/a9e87d9e/attachment.htm>


More information about the rt-users mailing list