Overview
Artifact ID: | 622d06c23084637d6875db8756aba26feaa7e250 |
---|---|
Ticket: | 8f7e657c693bfb49282f6ad99b7616a4eff0faa6
Example for report coloring by priority is wrong |
User & Date: | anonymous 2010-02-12 02:07:21 |
Changes
- comment changed to:
The example below is wrong. The reason ? According to the common TH1 code for reports priority is a TEXT column with values 'Immediate' ... 'Zero'. The example on the other hand assumes priority to be INT in range 1 ... 5. SELECT CASE priority WHEN 1 THEN '#f2dcdc' WHEN 2 THEN '#e8e8bd' WHEN 3 THEN '#cfe8bd' WHEN 4 THEN '#cacae5' ELSE '#c8c8c8' END as 'bgcolor', ... FROM ticket The code I am now using my ticket setup is CASE priority WHEN 'Immediate' THEN '#f2dcdc' WHEN 'High' THEN '#e8e8bd' WHEN 'Medium' THEN '#cfe8bd' WHEN 'Low' THEN '#cacae5' ELSE '#c8c8c8' END as 'bgcolor',
- foundin changed to: "37f295c310"
- private_contact changed to: "194c9ef8edbd9a57ef36f4f18fde1d57ce26e1e5"
- severity changed to: "Minor"
- status changed to: "Open"
- title changed to: "Example for report coloring by priority is wrong"
- type changed to: "Code_Defect"