[rt-users] restrict priority range by requestor

Andy Harrison aharrison at gmail.com
Wed Dec 15 15:35:27 EST 2004


On Wed, 15 Dec 2004 11:04:35 -0600, Roedel, Mark <MarkRoedel at letu.edu> wrote:
> 
> I thought I remembered seeing something about this, but not finding
> anything so far in the wiki or mailing list archives, so...
> 
> One of the things on our would-be-nice-to-have list is the ability to
> configure things so that particular users (or, even better, particular
> groups) within a given queue only have the ability to specify a
> particular range of values for a ticket's starting priority.  (This
> would allow us, for example, to restrict the initial priority value
> available to users who consistently overestimate the urgency of their
> requests, or to allow our VPs to insert themselves towards the top of
> the list.)
> 
> Has anybody already done the initial work for something like this?  Any
> pointers would be greatly appreciated.


Shouldn't be too hard to scrip, but it wouldn't be very friendly to
the user.  You'd can probably use an OnPriorityChange scrip.

Description: UserPriorityForJohnSmith
Condition:
OnPriorityChange

Action:  User-defined
Action Prep:
# John's range is 20-40
return undef if $self->Argument < 20 or $self->Argument > 40;
return 1;

Commit:
my ($status, $msg) = $self->TicketObj->SetInitialPriority( $self->Argument );
return 1;


Or you could make some sort of assumption...  if he enters a value
less than 20, then use 20, if he enters a value greater than 40, use
40.

-- 
Andy Harrison



More information about the rt-users mailing list