-- ## 1: 활성화된 티켓들 ## -- -- -- * 우선 순위별로 정렬된 모든 활성화된 티켓들. -- * 각 행의 색깔은 우선순위를 의미합니다. -- * 만약 티켓이 수락되었다면, 소유주 이름 뒤에 '*'가 추가됩니다. SELECT p.value AS __color__, id AS ticket, summary, component, version, milestone, t.type AS type, (CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS owner, 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 IN ('new', 'assigned', 'reopened') ORDER BY p.value, milestone, t.type, time