[rt-users] Owner list on 'Quick ticket creation'
Brandon Pulsipher
brandonp at omniture.com
Thu May 12 19:06:02 EDT 2005
Thanks. I actually was able to do what I wanted by moving the
QuickCreate element to the local directories and modifying the drop down
to:
<font size="-2"><&|/l&>Owner</&>:<br>
<& /Elements/SelectOwner, Name => "Owner", QueueObj => undef, Default
=> $ARGS{Owner}||$RT::Nobody->Id, DefaultValue => 0 &>
</font>
-Brandon
-----Original Message-----
From: Stephen Turner [mailto:sturner at MIT.EDU]
Sent: Thursday, May 12, 2005 8:56 AM
To: Brandon Pulsipher; rt-users at lists.bestpractical.com
Subject: RE: [rt-users] Owner list on 'Quick ticket creation'
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