Ticket #1148 (closed defect: invalid)
How to include changelog in ticket reports?
| Reported by: | p.schregle@… | Owned by: | daniel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | report system | Version: | 0.8 |
| Severity: | normal | Keywords: | |
| Cc: | p.schregle@… |
Description
I want to create a ticket report that includes the full description as well as the changelog of a ticket.
I've tried the following report syntax:
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, severity, priority, owner,
changetime AS modified,
time AS _time,reporter AS _reporter,
description AS _description_
FROM ticket t,enum p
WHERE p.name=t.priority AND p.type='priority'
ORDER BY (milestone IS NULL), milestone DESC, (status = 'closed'),
(CASE status WHEN 'closed' THEN modified ELSE -p.value END) DESC
which works as I'd like it but does only include the ticket description originally provided with the ticket, not the changes made to the ticket afterwards.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


