OK, I have found out how to find all tickets that transitioned to
closed between certain dates here :
http://groups.google.com/group/trac-users/browse_thread/thread/c3452e8656af5988/ee2ce7d201f9253f?hl=en&lnk=gst&q=tickets+closed+in+version#ee2ce7d201f9253f
can anyone point me to how to get the "released data" from the version
id from trac, and insert into this script:
select id, type, summary, component, milestone, owner,
datetime((select max(tc.time) from ticket_change tc
where
t.id = tc.ticket and field = 'status' and newvalue =
'closed'),
'unixepoch', 'localtime') as closedate,
(select max(tc.time) from ticket_change tc
where
t.id = tc.ticket and field = 'status' and newvalue =
'closed')
as closetime
from ticket t
where status = 'closed'
and closetime > strftime('%s',datetime('2006-03-24 16:38:45')) +0
and closetime < strftime('%s',datetime('2006-04-06 15:25:34')) +0
AND type IN ('defect','enhancement')
order by -closetime
where the 2 datetime(....)s I would want to insert versionX.release
and versionY.release
This would be in the off-chance that the release date was entered
incorrectly for a version, therefore requiring one to re-edit these
queries with the correct dates, every time a release date changes. Or
when we just want a "LATEST" version, which is always changing and we
do between LASTEST.releasedate and NOW
guess it's time to snoop the trac db again.
Thanks in advance