side by side
lines around each change
Show the changes in full context
White space changes
Nov 6, 2009, 7:38:19 PM (
=== Adding Hours with the Ticket Sidebar ===
The [source:trachoursplugin/0.11/trachours/web_ui.py TracHoursSidebarProvider] component adds a sidebar for on existing tickets for convenient posting of hours:
The TicketSidebarProviderPlugin will additionally have to be installed and enabled for the sidebar element to appear. It will also only show up if you have the `TICKET_ADD_HOURS` permission.
When adding hours via the sidebar, they will be logged as the currently authenticated user at the time that the form is submitted. Comments will not be made.
=== Adding Hours via Comments ===
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.
In addition to being able to log hours by comments through the web, `TracHoursByComments` also plays nicely with other methods of annotating tickets:
* 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:
handlers = RemoveQuotes, TracHoursByComment, ReplyToTicket, EmailToTicket
* hours may be added via an svn post-commit hook, at least the one in RepositoryHookSystemPlugin. Make sure you include a ticket reference:
svn ci -m 'add footnote, took 2 hours ; refs #6'
'''<- TracHoursPlugin wiki page'''