Changes between Version 21 and Version 22 of TracHoursHowto


Ignore:
Timestamp:
Nov 6, 2009, 7:38:19 PM (14 years ago)
Author:
Jeff Hammel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracHoursHowto

    v21 v22  
    5050=== Adding Hours with the Ticket Sidebar ===
    5151
     52The [source:trachoursplugin/0.11/trachours/web_ui.py TracHoursSidebarProvider] component adds a sidebar for on existing tickets for convenient posting of hours:
     53
    5254[[Image(TracHoursPlugin:hours-ticket-sidebar.png, border=1)]]
     55
     56The 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.
     57
     58When 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.
     59
    5360
    5461=== Adding Hours via Comments ===
    5562
     63The [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
     65In 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]
     69handlers = 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{{{
     73svn ci -m 'add footnote, took 2 hours ; refs #6'
     74}}}
     75
    5676'''<- TracHoursPlugin wiki page'''