-- ## 8: Tickets ouverts, les miens d'abord ## -- -- -- * Liste de tous les tickets ouverts triés par priorité. -- * Montre tous les tickets de l'utilisateur connecté groupés en premier SELECT p.value AS __color__, (CASE owner WHEN $USER THEN 'Mes Tickets' ELSE 'Tickets ouverts' END) AS __group__, id AS ticket, summary, component, version, milestone, t.type AS type, owner, status, 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 <> 'closed' ORDER BY (owner = $USER) DESC, p.value, milestone, t.type, time