-- ## 1: Bugs by priority ## -- -- Lists all open bugs in order of priority. SELECT p.value AS __color__, id AS ticket, summary, component, version, priority, severity, milestone, owner, status, time AS created, changetime AS _changetime, description AS _description, reporter AS _reporter FROM ticket t, enum p WHERE status <> 'closed' AND t.type = 'bug' AND p.name = t.priority AND p.type = 'priority' ORDER BY p.value, milestone, time