-- ## 29: Query for type = "defect" and not closed ## -- -- -- Query for type = defect SELECT p.value AS __color__, id AS ticket, summary, component, version, milestone, reporter, t.type AS type, owner, status, time AS created, changetime AS _changetime, t.description AS _description FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' WHERE t.type = 'defect' AND t.status NOT IN ('closed', 'addressed', 'released') /* AND component = 'Curator Tool' */ ORDER BY ticket DESC