source: timingandestimationplugin/branches/trac0.11-Permissions/timingandestimationplugin/usermanual.py

Last change on this file was 7840, checked in by Russ Tyndall, 13 years ago

Updated permissions user manual. Bill dates on Billing/Management screen are now sorted in decending cron order version 0.9.1

File size: 7.8 KB
Line 
1user_manual_title = "Timing and Estimation Plugin User Manual"
2user_manual_version = 14
3user_manual_wiki_title = "TimingAndEstimationPluginUserManual"
4user_manual_content = """
5
6[[PageOutline]]
7= Timing and Estimation Plugin User Manual =
8[http://trac-hacks.org/wiki/TimingAndEstimationPlugin TimingAndEstimationPlugin on TracHacks] | [http://trac-hacks.org/report/9?COMPONENT=TimingAndEstimationPlugin Open Tickets] | [http://trac-hacks.org/newticket?component=TimingAndEstimationPlugin&owner=bobbysmith007 New Ticket]  |
9[http://trac-hacks.org/browser/timingandestimationplugin/trunk Web Browsable Source Code]
10
11== Abstract Design Goal ==
12My goal in writing this plugin was to use as much of the existing structure as possible (therefore not needing to add extra structure that might make maintainability difficult).  The largest downside I have found to this is that there is no way to attach more permissions to anything.
13
14== Custom Ticket Fields ==
15In adhering to our design goal, rather than creating a new ticket interface, I create some custom fields and a small daemon to watch over them. 
16
17=== Fields: ===
18 * '''Hours to Add''' This field functions as a time tracker.  When you add hours to it , those hours get added to the total hours field.  The person  who made the change is there fore credited with the hours spent on it.
19 * '''Total Hours''' This field is the total number of hours that have been added to the project. This has been made uneditable by including javascript which replaces the input box with a span containing its value
20   * Reports might not agree with each other if this is manually edited (which is possible if you disable javascript).
21 * '''Is this billable?''' An extra flag on tickets so that they can be marked as billable / not billable.
22 * '''Estimated Hours''' a field that contains the estimated amount of work
23=== Future Fields ===
24 * '''Ticket Rate''' The ability to attach a cost per hour or total amount to an individual ticket
25
26== Billing / Management Page / Time Reports ==
27This page provide a small interface for querying the tickets and adding a bill date at the current time. 
28This interface mostly just gives you links that match the interface to open any of the give reports,
29providing it the correct set of input parameters
30
31The direct url is '/Billing'.
32
33=== No Permissions Branch ===
34The 'Management' button should be in the main title bar.  It is possible that if you are viewing at a low resolution, it was pushed off the edge of the screen.  Also if you are not logged in with report_view permissions, it will not show that button.
35
36=== Permissions Branch ===
37The 'Time Reports' button should be in the main title bar.  Whether or not you see this will be based on whether your user has TIME_VIEW permissions.
38
39
40
41
42=== Set Bill Date ===
43
44This button will add now as a bill date.  This is mostly to make it
45easier to select the last time you billed.  This would allow you to
46set a ticket as having been billed at a given time while others have
47not, and accurately get the correct billing information for all
48tickets.
49
50== Reports ==
51=== Report Types ===
52We provide a few different reports for querying different types of data:
53    * '''Billing Reports''' Currently the billing reports are the only time based reports, and are therefore useful for getting an estimate what tickets had times (and totals), and which developers spent their time where.
54       * Ticket Work Summary
55       * Milestone Work Summary
56       * Developer Work Summary
57    * '''Ticket/Hour Reports''' These reports are useful for reviewing estimates on a large scale or getting an idea of the project at large.  These reports currently ignore the time.
58       * Ticket Hours
59       * Ticket Hours with Description
60       * Ticket Hours Grouped By Component
61       * Ticket Hours Grouped By Component with Description
62       * Ticket Hours Grouped By Milestone
63       * Ticket Hours Grouped By Milestone with Description
64=== Adding More Reports ===
65To add reports to the Management screen sections, you must run the following sql against your trac database
66Remember to fill in the @reportID of the report you want to insert, and to select the insert statement for the section of your choice.
67 * {{{INSERT INTO custom_report (id, uuid, maingroup, subgroup, version, ordering) VALUES (@reportID , @uuid, 'Timing and Estimation Plugin', 'Billing Reports', 1, 0);}}}
68 * {{{INSERT INTO custom_report (id, uuid, maingroup, subgroup, version, ordering) VALUES (@reportID , @uuid, 'Timing and Estimation Plugin', 'Ticket/Hour Reports', 1, 0);}}}
69
70''NB: @uuid is a globally uninque identifier created via a tool such as {{{uuidgen}}} on Linux or various [http://www.famkruithof.net/uuid/uuidgen online tools]. It is used in this plugin to provide programatic reference to specific reports such that they can be upgraded successfully on future revisions of the plugin''
71
72=== Removing a Report ===
73To remove reports from the Management page, run the following query.
74Remember to fill in the @reportID of the report you want to modify.
75 * To remove for this version of the plugin (will be over written in future plugin upgrades)
76   * {{{UPDATE custom_report SET maingroup='x'||maingroup WHERE report = @reportID;}}}
77 * To remove permanently (wont be over written in future plugin upgrades)
78   * {{{UPDATE custom_report SET version=9999, maingroup='x'||maingroup WHERE report = @reportID;}}}
79''NB: The 'x' part is not important - you just need to make the column read something other than 'Timing and Estimation Plugin'.''
80
81=== TAKE NOTE ===
82 '''The reports can only be called from the Management Page. They will not work from the Trac View Tickets page. (Due to the custom variables that need values).'''
83
84== Permissions Branch ==
85Recently a branch of this plugin was sponsored by [http://www.obsidiansoft.com/ Obsidian Software] so that it would support per field permissions. 
86
87This is accomplished with Genshi 5 stream filters in trac 11.  This code draws from the [http://trac-hacks.org/wiki/BlackMagicTicketTweaksPlugin BlackMagicTicketTweaksPlugin]
88{{{
89#!html
90<br />
91<a href="http://www.obsidiansoft.com/" >
92<img src="http://trac-hacks.org/attachment/wiki/TimeEstimationUserManual/obsidian-logo.gif?format=raw" />
93</a>
94}}}
95
96=== Configuration ===
97There is a new trac.ini configuration section which is filled in by default as follows.
98{{{
99#!ini
100[field settings] # per field permissions
101
102# a list of all the fields to apply permissions to
103fields = billable, totalhours, hours, estimatedhours, internal
104
105# a bunch of:
106# field.permission = PERMISSION:consequence
107#
108#  If PERMISSION=ALWAYS, then the consequence always occurs
109#    eg: billable.permission = ALWAYS:hide
110#        will always result in billable being hidden, irrespective of user permissions   
111#
112# where consequence is one of: hide, remove, disable
113#    hide - replaces with hidden input
114#    remove - removes element
115#    disable - removes input in favor of text
116billable.permission = TIME_VIEW:hide, TIME_RECORD:disable
117totalhours.permission = TIME_VIEW:remove, TIME_RECORD:disable
118hours.permission = TIME_RECORD:remove
119estimatedhours.permission = TIME_RECORD:disable
120internal.permission = TIME_RECORD:hide
121}}}
122
123It also adds an "Internal" checkbox which allows you to set a ticket as internal.  For this policy to work correctly you need to add a line to the trac section of the config telling it which permission policies to use.  (The setup will attempt to put this line of configuration in place. )  The permission that looks at currently is 'TIME_ADMIN'.  To change that group set the internalgroup of the ticket section in the trac.ini as follows:
124
125{{{
126#!ini
127[ticket]
128internalgroup = TRAC_ADMIN #or whatever group / permission you want
129
130[trac]
131permission_policies = InternalTicketsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
132}}}
133
134== Future Improvements ==
135 * [http://trac-hacks.org/report/9?COMPONENT=TimingAndEstimationPlugin See tickets] at the [http://trac-hacks.org/wiki/TimingAndEstimationPlugin project trac]
136
137"""
Note: See TracBrowser for help on using the repository browser.