List active tickets, group by ticket reporter, sorted by priority.
Report execution failed:
AmbiguousColumn: column reference "description" is ambiguous
LINE 7: changetime AS _changetime, description AS _description,
^
SELECT COUNT(*) FROM (
SELECT p.value AS __color__,
reporter AS __group__,
id AS ticket, summary, component, milestone, time AS created,
changetime AS _changetime, description AS _description,
owner AS _owner, t.priority, t.severity, t.type AS type, status, owner
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
LEFT JOIN enum s ON s.name = t.severity AND s.type = 'severity'
LEFT JOIN enum y ON y.name = t.type AND y.type = 'type'
WHERE status <> 'closed'
ORDER BY reporter, CAST(p.value AS int), CAST(s.value AS int), CAST(y.value AS int), time
) AS tab
Note:
See TracReports
for help on using and creating reports.