[rt-users] Owner list on 'Quick ticket creation'

Stephen Turner sturner at MIT.EDU
Thu May 12 10:56:02 EDT 2005


At Wednesday 5/11/2005 03:41 PM, Brandon Pulsipher wrote:
>Understandable.  I've only got about 15 potential owners today, and
>don't expect this to grow beyond 25-30 in the next year, maybe 50
>all-time.  Seems like that shouldn't impact load time considerably.
>
>I have found the file that handle this:  QuickCreate in the Elements
>folder, but I'm not sure of the Perl changes.
>
>This is the code right now:
><select type="select" name="Owner">
><option value="Bob">Bob</option>
><option value="<%$session{'CurrentUser'}->id%>"
>SELECTED><%$session{'CurrentUser'}->Name %></option>
><option value="<%$RT::Nobody->id%>"><%loc('Nobody')%></option>
></select>
>
>Any gurus offer the changes to get a list of all potential owners?
>Maybe another approach would be to list all users in a group.  I could
>then create a quickcreate group, to show the users I want to.  Possible?
>
>Thanks in advance.

Brandon

I haven't used this, so I can't guarantee it will do what you need, but...

Look at Users_Overlay.pm - there's a method called WhoHaveRight that looks 
like it might for work for you:

$Users->WhoHaveRight ( Right => 'OwnTicket')

where $Users is a RT::Users object.

Steve 




More information about the rt-users mailing list