Changes between Version 20 and Version 21 of EstimationToolsPlugin
- Timestamp:
- Mar 15, 2009, 2:06:40 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EstimationToolsPlugin
v20 v21 138 138 === !HoursInPlaceEditor === 139 139 140 This component allows to edit the remaining hours field directly in the queryview.140 This component allows to edit the remaining hours field directly in the custom query view as well as in the report view. 141 141 142 142 [[Image(HoursInPlaceEditor.png)]] 143 143 144 == Tips == 145 === Customising Queries === 144 * to show the remaining hours in the custom query view, you have to enable the corresponding column 146 145 147 If you want to show the remaining hours column in your SQL queries, you need to join the ticket table with the ticket_custom table, which contains the custom fields. However, please note that the !HoursInPlaceEditor won't work with these reports, but only with "custom queries". 146 * if you want to show the remaining hours column in your SQL reports, you need to join the ticket table with the ticket_custom table, which contains the custom fields. 148 147 149 {{{148 {{{ 150 149 SELECT 151 ... # normal SELECT statement150 ... # normal SELECT statement 152 151 id AS ticket, 153 ifnull(tc.value,'') as Hrs, # adds the value of estimatedhours in a column called Hrs, using '' if it doesn't exist.152 ifnull(tc.value,'') as estimatedhours, # adds the value of estimatedhours in a column that must have same name original field 154 153 FROM ticket t 155 LEFT JOIN ... # other LEFT JOIN statements (in the default Trac queries) can be left in place154 LEFT JOIN ... # other LEFT JOIN statements (in the default Trac queries) can be left in place 156 155 LEFT JOIN ticket_custom tc ON tc.ticket = t.id and tc.name = 'estimatedhours' 157 156 ... 158 }}} 159 * You could change Hrs to 'Remaining Hours' to modify the column name. 160 * You could change {{{''}}} to '0' to show 0 hours for tickets that don't have a corresponding estimatedhours field. 161 * Tickets may have an estimated hours field that is empty, in which case you may still see "blank" 157 }}} 158 * You could change {{{''}}} to '0' to show 0 hours for tickets that don't have a corresponding estimated hours field. 159 * Tickets may have an estimated hours field that is empty, in which case you may still see "blank" 162 160 163 161 == Recent Changes ==