<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 4:56 AM, Brent Wiese <span dir="ltr"><<a href="mailto:bwiese@elementps.com" target="_blank">bwiese@elementps.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I have a custom field that I currently have set to Privileged Users:<span style="font-size:8.0pt;font-family:"Arial Narrow","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Set(@CustomFieldValuesSources, "RT::CustomFieldValues::PrivUsers");<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.</p></div></div></blockquote>
<div><br></div><div style>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.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks!<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">Brent<u></u><u></u></p>
</font></span></div>
</div>
<br><br>
<br>
--<br>
RT Training in Seattle, June 19-20: <a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards, Ruslan.
</div></div>