DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Open Tickets, Changed/created In The Last 10 Days
There might be a more optimized version of the date selection, but this is easy for humans to read.
SELECT p.value AS __color__, id AS ticket, summary, component, version, t.type AS type, owner, status, time AS created, changetime AS _changetime, description AS _description, reporter AS _reporter FROM ticket t, enum p WHERE status <> 'closed' AND unix_timestamp(date_sub(now(), interval 10 day)) < changetime AND p.name = t.priority AND p.type = 'priority' ORDER BY changetime desc





