-- ## 23: Open tickets for any 1.3 or 1.4 version ## -- SELECT p.value AS __color__, t.milestone AS __group__, (CASE status WHEN 'closed' THEN 'color: #777; background: #ddd; border-color: #ccc;' ELSE (CASE owner WHEN '$USER' THEN 'font-weight: bold' END) END) AS __style__, id AS ticket, summary, component, status, resolution,version, t.type AS type, priority, owner, changetime AS modified, time AS _time,reporter AS _reporter FROM ticket t,enum p WHERE p.name=t.priority AND t.status != 'closed' AND p.type='priority' AND (t.version LIKE '1.3%' OR t.version LIKE '1.4%') AND t.type != 'documentation' AND t.type != 'translation' AND (t.component = 'sfPropelPlugin' OR t.component = 'sfDoctrinePlugin' OR t.component NOT LIKE '%plugin%') ORDER BY (milestone IS NULL), milestone DESC, (status = 'closed'), (CASE status WHEN 'closed' THEN modified ELSE (-1)*p.value END) DESC