I have attached a patch that adds a $TIME dynamic variable that can be
used in Reports. It can be used to create time based reports, such as a
report of tickets opened in the past week:
SELECT p.value AS __color__,
id AS ticket, summary, component AS product, version, milestone AS
project, severity,
(CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS
owner,
time AS created,
changetime AS _changetime, description AS _description,
reporter AS _reporter
FROM ticket t, enum p
WHERE time > $TIME - 604800
AND p.name = t.priority AND p.type = 'priority'
ORDER BY time DESC
It's a very simple patch, and hopefully not my last contribution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report_time.patch
Type: application/octet-stream
Size: 441 bytes
Desc: not available
Url : /archive/trac/attachments/20040909/e7df6666/report_time.a
-------------- next part --------------
--
Paul Baker
"Yes, we did produce a near-perfect republic. But will they keep it? Or
will they, in the enjoyment of plenty, lose the memory of freedom?”
-- Thomas Jefferson in a letter to John Adams
GPG Key: http://homepage.mac.com/pauljbaker/public.asc
used in Reports. It can be used to create time based reports, such as a
report of tickets opened in the past week:
SELECT p.value AS __color__,
id AS ticket, summary, component AS product, version, milestone AS
project, severity,
(CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS
owner,
time AS created,
changetime AS _changetime, description AS _description,
reporter AS _reporter
FROM ticket t, enum p
WHERE time > $TIME - 604800
AND p.name = t.priority AND p.type = 'priority'
ORDER BY time DESC
It's a very simple patch, and hopefully not my last contribution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report_time.patch
Type: application/octet-stream
Size: 441 bytes
Desc: not available
Url : /archive/trac/attachments/20040909/e7df6666/report_time.a
-------------- next part --------------
--
Paul Baker
"Yes, we did produce a near-perfect republic. But will they keep it? Or
will they, in the enjoyment of plenty, lose the memory of freedom?”
-- Thomas Jefferson in a letter to John Adams
GPG Key: http://homepage.mac.com/pauljbaker/public.asc