Prettifying priorities in RT3

I want some notion of priority that involves human-readable names for
priorities. If I use built-in priorities, I see no way to get
human-readable names (High, Low, Critical, etc), and if I use a
custom field for priorities, I see no way to get my search results
sorted by that custom field.

How can I do what I want?

Thanks,

meeroh

http://web.meeroh.org/ | KB1FMP

A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

I added this code for priorities. Note that we only use 5 steps in prio,
and defaults to 3, but that is of course modable to your requirements.

Happy coding!

/Jonas

In html/Ticket/Elements/EditBasic, change the former priority textfield to:
<&|/l&>Priority</&>: <& /Ticket/Elements/SelectPriority, Name =>
‘Priority’, Default => $TicketObj->Priority &>

And add the following to a file named SelectPriority:

bash-2.03$ pwd
/service/rt3/local/html/Ticket/Elements
bash-2.03$ cat SelectPriority
% my $i;

% for ($i = 1; $i <= 5; $i++) {

><%$i%> <% ($i == 1) && '(highest)'%><% ($i == 5) && '(lowest)'%> % }

<%INIT>
if ($Default > 5 || $Default < 1) {
$Default = 3;
}
</%INIT>

<%ARGS>
$Name => undef
$Default => 3
</%ARGS>

Miro Jurisic wrote:

Having seen Jesse’s presentation at MIT last night, and having just
received a set of instructions for modifying RT to do my bidding (in
the “Prettifying priorities in RT3” thread), I would really like to
accomplish this using one of the RT tweak mechanisms which do not
rely on modifying RT sources. So, where do I find information about
local files and overlays in RT3?

meeroh

http://web.meeroh.org/ | KB1FMP

A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Miro Jurisic meeroh@MIT.EDU writes:

Having seen Jesse’s presentation at MIT last night, and having just
received a set of instructions for modifying RT to do my bidding (in
the “Prettifying priorities in RT3” thread), I would really like to
accomplish this using one of the RT tweak mechanisms which do not rely
on modifying RT sources. So, where do I find information about local
files and overlays in RT3?

RT has a “local” directory tree, by default in /opt/rt3/local. Things
here take precedence over things in the actual install tree. So if
you wanted to customize the main page, you’d copy
share/html/index.html to local/index.html, and edit the copy in
local. If a file or directory doesn’t exist in the local tree, the
version in the install tree is used instead.

David Z. Maze dmaze@cag.lcs.mit.edu
Research Scientist http://www.mit.edu/~dmaze/
MIT LCS Computer Architecture Group http://www.cag.lcs.mit.edu/commit/