-- ## 10: T3D Custom Report (+Common) ## -- -- A custom advanced report for T3D (including common components). SELECT p.value AS __color__, t.milestone AS __group__, (CASE status WHEN 'closed' THEN 'color: #777; background: #ddd; border-color: #ccc;' ELSE (CASE owner WHEN $USER THEN 'font-weight: bold' END) END) AS __style__, id AS ticket, summary, t.type AS type, component FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' WHERE component == 'T3D' OR component == 'Common' ORDER BY (milestone IS NULL), milestone DESC, (status = 'closed'), summary