-- ## 16: Active Tickets WRF only ## -- -- -- * List all active tickets for WRF by modification date. -- * Color each row based on priority. -- * You can sort the list by each column, clicking on the header (clicking a second time: reverse order) SELECT p.value AS __color__, id AS ticket, summary, component, t.type AS type, owner, status, time AS created, changetime AS modified, 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' AND version = 'FLEXPART-WRF' ORDER BY (-1)*changetime,CAST(p.value AS int), milestone, t.type, time