Changeset 1571
- Timestamp:
- Nov 15, 2006, 6:19:12 PM (17 years ago)
- Location:
- timingandestimationplugin/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
timingandestimationplugin/trunk/setup.py
r1554 r1571 8 8 description='Plugin to make Trac support time estimation and tracking', 9 9 keywords='trac plugin estimation timetracking', 10 version='0.2. 4',10 version='0.2.5', 11 11 url='', 12 12 license='http://www.opensource.org/licenses/mit-license.php', -
timingandestimationplugin/trunk/timingandestimationplugin/reports.py
r1496 r1571 9 9 "title":"Ticket Work Summary", 10 10 "reportnumber":None, 11 "version": 7,11 "version":9, 12 12 "sql":""" 13 13 SELECT ticket as __group__, __style__, ticket, … … 36 36 UNION 37 37 38 SELECT 'background-color:#DFE;' as __style__, 'Ticket Work Summary for the selected time period ' as author, t.id as ticket, sum(newvalue) as newvalue, NULL as time, 38 SELECT 'background-color:#DFE;' as __style__, 'Ticket Work Summary for the selected time period ' as author, t.id as ticket, 39 sum( CAST(newvalue as real) ) as newvalue, 40 NULL as time, 39 41 40 42 -- 'Ticket Work Summary for the selected time period ' … … 55 57 GROUP By t.id 56 58 ) as tbl 57 ORDER BY ticket, _ord , time59 ORDER BY ticket, _ord ASC , time ASC 58 60 59 61 """ … … 62 64 "title":"Milestone Work Summary", 63 65 "reportnumber":None, 64 "version": 7,66 "version":9, 65 67 "sql":""" 66 68 … … 75 77 _ord 76 78 FROM( 77 SELECT '' as __style__, t.id as ticket, SUM( newvalue) as newvalue,t.summary as summary,79 SELECT '' as __style__, t.id as ticket, SUM(CAST(newvalue as real)) as newvalue,t.summary as summary, 78 80 MAX(ticket_change.time) as time, 79 81 … … 96 98 97 99 SELECT 'background-color:#DFE;' as __style__, 98 NULL as ticket, sum( newvalue) as newvalue,100 NULL as ticket, sum(CAST(newvalue as real)) as newvalue, 99 101 '' as summary, 100 102 NULL as time, … … 117 119 GROUP By t.milestone 118 120 ) as tbl 119 ORDER BY milestone, ticket, time, _ord121 ORDER BY milestone, _ord ASC, ticket, time 120 122 121 123 … … 127 129 "title":"Developer Work Summary", 128 130 "reportnumber":None, 129 "version": 6,131 "version":9, 130 132 "sql":""" 131 133 SELECT author as __group__,__style__, ticket, … … 154 156 155 157 SELECT 'background-color:#DFE;' as __style__, author, 156 NULL as ticket, sum( newvalue) as newvalue, NULL as time,158 NULL as ticket, sum(CAST(newvalue as real)) as newvalue, NULL as time, 157 159 158 160 -- 'Developer Work Summary for '|| … … 172 174 GROUP By author 173 175 ) as tbl 174 ORDER BY author, time, _ord176 ORDER BY author, _ord ASC, time 175 177 176 178 """ … … 181 183 "title": "Ticket Hours", 182 184 "reportnumber": None, 183 "version": 4,185 "version":6, 184 186 "sql": """ 185 187 SELECT __color__, __style__, ticket, summary_, component ,version, severity, … … 227 229 NULL as ticket, 'Time Summary' AS summary_, 228 230 NULL as component,NULL as version, NULL as severity, NULL as milestone, NULL as status, NULL as owner, 229 SUM( EstimatedHours.value) as Estimated_hours,230 SUM( totalhours.value) as total_hours,231 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 232 SUM(CAST(totalhours.value as real)) as total_hours, 231 233 NULL as billable, 232 234 NULL as created, NULL as modified, -- ## Dates are formatted … … 251 253 AND billable.value in ($BILLABLE, $UNBILLABLE) 252 254 ) as tbl 253 ORDER BY ticket, _ord255 ORDER BY _ord ASC, ticket 254 256 """ 255 257 }, … … 258 260 "title": "Ticket Hours with Description", 259 261 "reportnumber": None, 260 "version": 4,262 "version":7, 261 263 "sql": """ 262 264 SELECT __color__, __style__, ticket, summary_, component ,version, severity, … … 304 306 NULL as ticket, 'Time Summary' AS summary_, 305 307 NULL as component,NULL as version, NULL as severity, NULL as milestone, NULL as status, NULL as owner, 306 SUM( EstimatedHours.value) as Estimated_hours,307 SUM( totalhours.value) as total_hours,308 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 309 SUM(CAST(totalhours.value as real)) as total_hours, 308 310 NULL as billable, 309 311 NULL as created, NULL as modified, -- ## Dates are formatted … … 328 330 AND billable.value in ($BILLABLE, $UNBILLABLE) 329 331 ) as tbl 330 ORDER BY ticket, _ord332 ORDER BY _ord ASC, ticket 331 333 """ 332 334 }, … … 336 338 "title":"Ticket Hours Grouped By Component", 337 339 "reportnumber":None, 338 "version": 4,340 "version":6, 339 341 "sql": """ 340 342 SELECT __color__, __group__, __style__, ticket, summary_, component ,version, severity, … … 385 387 t.component as component,NULL as version, NULL as severity, NULL as milestone, NULL as status, 386 388 NULL as owner, 387 SUM( EstimatedHours.value) as Estimated_hours,388 SUM( totalhours.value) as total_hours,389 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 390 SUM(CAST(totalhours.value as real)) as total_hours, 389 391 NULL as billable, 390 392 NULL as created, … … 411 413 GROUP BY t.component 412 414 ) as tbl 413 ORDER BY component, ticket, _ord415 ORDER BY component, _ord ASC,ticket 414 416 """ 415 417 }, … … 419 421 "title":"Ticket Hours Grouped By Component with Description", 420 422 "reportnumber":None, 421 "version": 4,423 "version":6, 422 424 "sql": """ 423 425 SELECT __color__, __group__, __style__, ticket, summary_, component ,version, severity, … … 467 469 NULL as ticket, 'Time Summary' AS summary_, 468 470 t.component as component,NULL as version, NULL as severity, NULL as milestone, NULL as status, NULL as owner, 469 SUM( EstimatedHours.value) as Estimated_hours,470 SUM( totalhours.value) as total_hours,471 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 472 SUM(CAST(totalhours.value as real)) as total_hours, 471 473 NULL as billable, 472 474 NULL as created, NULL as modified, -- ## Dates are formatted … … 492 494 GROUP BY t.component 493 495 ) as tbl 494 ORDER BY component, ticket, _ord496 ORDER BY component,_ord ASC, ticket 495 497 """ 496 498 }, … … 499 501 "title":"Ticket Hours Grouped By Milestone", 500 502 "reportnumber":None, 501 "version": 4,503 "version":6, 502 504 "sql": """ 503 505 SELECT __color__, __group__, __style__, ticket, summary_, component ,version, severity, … … 548 550 NULL as component,NULL as version, NULL as severity, t.milestone as milestone, 549 551 NULL as status, NULL as owner, 550 SUM( EstimatedHours.value) as Estimated_hours,551 SUM( totalhours.value) as total_hours,552 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 553 SUM(CAST(totalhours.value as real)) as total_hours, 552 554 NULL as billable, 553 555 NULL as created, NULL as modified, -- ## Dates are formatted … … 573 575 GROUP BY t.milestone 574 576 ) as tbl 575 ORDER BY milestone, ticket, _ord577 ORDER BY milestone,_ord ASC, ticket 576 578 """ 577 579 }, … … 580 582 "title":"Ticket Hours Grouped By MileStone with Description", 581 583 "reportnumber":None, 582 "version": 4,584 "version":6, 583 585 "sql": """ 584 586 SELECT __color__, __group__, __style__, ticket, summary_, component ,version, severity, … … 629 631 NULL as component,NULL as version, NULL as severity, t.milestone as milestone, 630 632 NULL as status, NULL as owner, 631 SUM( EstimatedHours.value) as Estimated_hours,632 SUM( totalhours.value) as total_hours,633 SUM(CAST(EstimatedHours.value as real)) as Estimated_hours, 634 SUM(CAST(totalhours.value as real)) as total_hours, 633 635 NULL as billable, 634 636 NULL as created, NULL as modified, -- ## Dates are formatted … … 654 656 GROUP BY t.milestone 655 657 ) as tbl 656 ORDER BY milestone, ticket, _ord658 ORDER BY milestone, _ord ASC, ticket 657 659 """ 658 660 }
Note: See TracChangeset
for help on using the changeset viewer.