Changes between Version 19 and Version 20 of EpochFieldPlugin
- Timestamp:
- Nov 11, 2015, 10:18:12 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EpochFieldPlugin
v19 v20 5 5 == Description 6 6 7 '''Note''': in this page, after slashes, descriptions in japanese-KANJI are added.7 '''Note''': on this page descriptions in japanese-Kanji are added after slashes (/). 8 8 9 9 '''This plugin will conflict in Trac 1.1.1. see trac:wiki:/TracDev/Proposals/TracTicketsCustomTimeFields and trac:ticket:1942. ''' … … 16 16 17 17 Existing bugs and feature requests for EpochFieldPlugin are 18 [report:9?COMPONENT=EpochFieldPlugin here]. [[BR]]18 [report:9?COMPONENT=EpochFieldPlugin here]. 19 19 20 20 If you have any issues, create a 21 [ http://trac-hacks.org/newticket?component=EpochFieldPlugin&owner=matobaa new ticket]. / 不具合報告は[http://trac-hacks.org/newticket?component=EpochFieldPlugin&owner=matobaaこちら]へ。21 [/newticket?component=EpochFieldPlugin new ticket]. / 不具合報告は[/newticket?component=EpochFieldPlugin こちら]へ。 22 22 23 23 [[TicketQuery(component=EpochFieldPlugin,group=type,format=progress)]] … … 25 25 == Download 26 26 27 Download the zipped source from [ download:epochfieldplugin here].[[BR]]27 Download the zipped source from [export:epochfieldplugin here]. 28 28 29 29 == Source 30 30 31 You can check out EpochFieldPlugin from [http://trac-hacks.org/svn/epochfieldplugin here] using Subversion, or [source:epochfieldplugin browse the source] with Trac.[[BR]] 32 入手は[download:epochfieldplugin zip], [http://trac-hacks.org/svn/epochfieldplugin Subversion], [source:epochfieldplugin Trac]でどうぞ。 31 You can check out EpochFieldPlugin from [/svn/epochfieldplugin here] using Subversion, or [source:epochfieldplugin browse the source] with Trac. 32 33 入手は[export:epochfieldplugin zip], [/svn/epochfieldplugin Subversion], [source:epochfieldplugin Trac]でどうぞ。 33 34 34 35 == Example / 例 … … 36 37 === Epoch field === #field 37 38 38 Specify '''format=epoch''' for the custom-field in trac.ini as follows or use CustomFieldAdminPlugin: / trac.ini または CustomFieldAdminPlugin で、カスタムフィールドの format を epoch と指定します: 39 {{{ 40 #!ini 39 Specify '''format=epoch''' for the custom-field in `trac.ini` as follows or use CustomFieldAdminPlugin: / `trac.ini` または CustomFieldAdminPlugin で、カスタムフィールドの format を epoch と指定します: 40 {{{#!ini 41 41 [ticket-custom] 42 42 due = text … … 51 51 52 52 In the `trac.ini` file specify the field-names you want to translate from epoch to datetime-string in regular-expressions as follows: / trac.ini で 日時表記したいカラム名を正規表現で指定して: 53 {{{ 54 #!ini 53 {{{#!ini 55 54 [epochfield] 56 55 date_columns = .*_date, .*日付? … … 60 59 61 60 And, for example, create a report query as follows: / たとえば以下のようにSQLを書くと、 62 {{{ 63 #!sql 61 {{{#!sql 64 62 SELECT id, summary, ticket.time, 65 a.time asaccepted_datetime,66 c.time asclosed_datetime,67 c.author asCloser63 a.time AS accepted_datetime, 64 c.time AS closed_datetime, 65 c.author AS Closer 68 66 FROM ticket 69 67 LEFT JOIN ( … … 73 71 GROUP BY ticket, newvalue, author 74 72 ) AS a ON (a.ticket = ticket.id AND a.status = 'accepted') 75 left join(73 LEFT JOIN ( 76 74 SELECT ticket, author, newvalue AS status, MAX(time) AS time 77 75 FROM ticket_change