SELECT COUNT(*) FROM (
SELECT p.value AS __color__,
t.component AS __group__,
t.id AS ticket, summary, priority, milestone, severity, t.type AS type,
owner, status,
time AS created,
changetime AS modified, description AS _description,
reporter
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
WHERE status <> 'closed'
ORDER BY t.component, p.value, t.severity, id DESC, milestone, t.type, time
) AS tab
Note:
See TracReports
for help on using and creating reports.