Restrict priority range by requestor

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.

Mark Roedel
Web Programmer / Analyst
LeTourneau University

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