summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius@trolltech.com>2012-03-02 21:31:42 +0100
committerMarius Storm-Olsen <marius@trolltech.com>2012-03-02 21:31:42 +0100
commit0ba2f560d8ca2bfd3ae4b71e66e114b9be85bd90 (patch)
tree2fe6b5bb0a2ee1b80037d827bbbff0c1093ba2ca
parentd188cb33a258102154654f73294184cab5d0f836 (diff)
Swap P0 and P1 colors
-rwxr-xr-xjira2gv6
1 files changed, 3 insertions, 3 deletions
diff --git a/jira2gv b/jira2gv
index d4a2cfa..044b929 100755
--- a/jira2gv
+++ b/jira2gv
@@ -168,15 +168,15 @@ sub createGvItem
my $priority = $item_ref->{'priority'}->{'content'};
my $color;
switch ($priority) {
- case /^P0/ { $color = "red" }
- case /^P1/ { $color = "firebrick" }
+ case /^P0/ { $color = "firebrick" }
+ case /^P1/ { $color = "red" }
case /^P2/ { $color = "gold" }
case /^P3/ { $color = "forestgreen" }
case /^Not/ { $color = "lightgrey" }
else { $color = "steelblue" }
}
- $result .= "\"$id\" [shape=none,margin=0,color=$color,"
+ $result .= "\"$id\" [shape=none,margin=0,color=\"$color\","
. "label=<<TABLE ALIGN=\"LEFT\" BORDER=\"1\" CELLBORDER=\"0\" COLOR=\"black\">"
. "<TR><TD ALIGN=\"LEFT\"><B>$id</B></TD><TD ALIGN=\"CENTER\"><B>"
. $priority . "</B></TD><TD ALIGN=\"RIGHT\">"