{12} Active brainstorming ('Discussion') tickets ordered by last changed

  • List all current active brainstorming ('Discussion') tickets.
  • Order by Last Modified ticket

Check out Jajuk Trac rules

Report execution failed:
ProgrammingError: function strftime(unknown, unknown) does not exist
LINE 8:    (CASE WHEN strftime('%s','now') - changetime > 86400
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

SELECT p.value AS __color__,
   id AS ticket, summary, component, 
   t.type AS _type, 
   owner, status,
   time AS created,
   (CASE WHEN strftime('%s','now') - changetime > 86400
        THEN round( ((strftime('%s','now') - changetime) / 86400),0) || ' days'
        WHEN strftime('%s','now') - changetime > 3600
        THEN round( ((strftime('%s','now') - changetime)/3600),0) || ' hours'
        ELSE round( ((strftime('%s','now') - changetime)/60),0) || ' mins'
    END) AS LastModified,
   description AS _description   
  FROM ticket t
  LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
  WHERE t.type IN ('Discussion') AND status <> 'closed' 
  ORDER BY changetime
) AS tab
Note: See TracReports for help on using and creating reports.