-- ## 1: Активные тикеты ## -- -- * Список всех активных тикетов по приоритетам. -- * Цвета строк в зависимости от приоритета. SELECT p.value AS __color__, id AS ticket, summary, component, milestone, t.type AS type, owner, status, time AS created, changetime AS modified, t.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 CAST(p.value AS signed), milestone, t.type, time