-- ## 12: Active Tickets by Component ## -- -- Breakdown of what's broken where. -- -- Items without a specified component are listed with a component of 'none' SELECT p.value AS __color__, 'Component: ' ||component AS __group__, id AS ticket, summary, component, version, t.type AS type, owner, status, priority as priority, time AS created, changetime AS _changetime, description AS _description, reporter AS _reporter FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' WHERE status <> 'closed' ORDER BY component, p.value, t.type, time