Modify

Opened 8 years ago

Closed 8 years ago

#5466 closed enhancement (fixed)

Patch to make it record automatically into the TracHoursPlugin

Reported by: lvs@… Owned by: Colin Guthrie
Priority: normal Component: WorkLogPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.11

Description

Hi,

I use TracHoursPlugin to record my ime to tickets. I wanted the WorkLogPlugin to automatically record my time.

TracHoursPlugion monitors the ticket message for changes, thus I simply adjusted WorkLogPlugin to write to teh ticket message in the correct format.

Note: I am not a Python coder, so if I am doing something mad, please let me know ;)

Patch attached.

Changed 13 seconds ago by web

Hours recorded automatically by the worklog plugin. (spent 1m)

Changed 12 seconds ago by web

web worked on this ticket for less than a minute between 07/03/09 12:46:06 and 07/03/09 12:47:02.

Attachments (2)

worklog_trachours.diff (1.3 KB) - added by lvs@… 8 years ago.
Patch to make WorkLogPlugin work with TracHoursPlugin
worklog_trachours.2.diff (1.3 KB) - added by lvs@… 8 years ago.
Correct diff

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by lvs@…

Attachment: worklog_trachours.diff added

Patch to make WorkLogPlugin work with TracHoursPlugin

comment:1 Changed 8 years ago by anonymous

Hi,

Forgot to mention that to make it activate a new configuration option was added to the ini:

[worklog] trachoursplugin = true

Changed 8 years ago by lvs@…

Attachment: worklog_trachours.2.diff added

Correct diff

comment:2 Changed 8 years ago by Colin Guthrie

Resolution: fixed
Status: newclosed

(In [6472]) Add integration support for TracHoursPlugin.

I've not tested this so hopefully I've not broken anything major. I used the patch on #5466 as a basis but totally messed about with the code so any bugs are mine. Added a preference in the admin section for easy management. Closes #5466 (sorry for the delay and please let me know if this is buggy :))

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Colin Guthrie.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.