| | 63 | The [source:trachoursplguin/0.11/trachours/ticket.py TracHoursByComment] component allows addition of hours by commenting on a ticket. Comments containing snippets like `5 hours`, `1 hour`, `3.7 hours`, or `0:30 hours` will be recorded for the ticket when the comment is submitted if the commenter has the `TICKET_ADD_HOURS` permission (otherwise, they will go unrecorded). The comments will also be logged to !TracHours' database and may be viewed additionally in `/hours/<ticket number>`, which should be linked to by the comment. |
|---|
| | 64 | |
|---|
| | 65 | In addition to being able to log hours by comments through the web, `TracHoursByComments` also plays nicely with other methods of annotating tickets: |
|---|
| | 66 | * hours may be added via replies to ticket emails using the MailToTracPlugin. Make sure that you have `TracHoursByComment` in your `[mail]` handlers for the link to be properly marked up: |
|---|
| | 67 | {{{ |
|---|
| | 68 | [mail] |
|---|
| | 69 | handlers = RemoveQuotes, TracHoursByComment, ReplyToTicket, EmailToTicket |
|---|
| | 70 | }}} |
|---|
| | 71 | * hours may be added via an svn post-commit hook, at least the one in RepositoryHookSystemPlugin. Make sure you include a ticket reference: |
|---|
| | 72 | {{{ |
|---|
| | 73 | svn ci -m 'add footnote, took 2 hours ; refs #6' |
|---|
| | 74 | }}} |
|---|
| | 75 | |
|---|