[rt-users] Ticket List Colors
Chr. v. Stuckrad
stucki at math.fu-berlin.de
Thu Oct 31 12:20:12 EST 2002
On Thu, Oct 31, 2002 at 11:18:43AM -0500, Jeff Hoover wrote:
> my $prio = substr(sprintf("%02d",eval("\$Ticket->Priority")),0,1);
I do consider this *interesting* (not a wob), but wouldn't it be
easier to make a formula space the (any number of) colors equally
along the (range of) priorites along the lines of
# you'll have t6o find out about these:
$m= <maximum priority>;
$n= <number of possible colors>;
$p= <priority>;
# and you use this formula:
$colorindex=int($p/(($m+1)/$n)) }
Just an Idea... Stucki
--
Christoph von Stuckrad * * |nickname |<stucki at math.fu-berlin.de>\
Freie Universitaet Berlin |/_*|'stucki' |Tel(days):+49 30 838-75 459|
Fachbereich Mathematik, EDV|\ *|if online|Tel(else):+49 30 77 39 6600|
Arnimallee 2-6/14195 Berlin* * |on IRCnet|Fax(alle):+49 30 838-75454/
More information about the rt-users
mailing list