X-Priority

From Request Tracker Wiki
Revision as of 16:39, 6 April 2016 by Admin (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

X-Priority

Below is example code you might include in your Correspondence, Comment and Transaction tickets to help your users ascertain which messages to read. It assumes you use to the full range of priorities (0--100), and messages without priorities (negative values) default to '3' (Normal).

X-Priority: {my $p=$Ticket->Priority; $p=50 if $p<0; 6-(int(($p/20)+.5)||1)}