-- ## 57: Query for type = task (copy) ## -- -- -- Query for type = task 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 = 'task' ORDER BY ticket DESC