id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 8309,Estimated hours fails.,Jay,Chris Nelson,"This may be relate to the follow on comments in #8289 [https://trac-hacks.org/ticket/8289#comment:7 comment 7] However, now that fields.percent works, if I also include estimated hours, this error happens: {{{ 2010-12-14 12:42:33,084 Trac[formatter] ERROR: Macro TracJSGanttChart(milestone=PM tools) failed: Traceback (most recent call last): File ""C:\usr\bin\Python26\lib\site-packages\trac\wiki\formatter.py"", line 710, in _macro_formatter return macro.process(args, in_paragraph=True) File ""C:\usr\bin\Python26\lib\site-packages\trac\wiki\formatter.py"", line 304, in process text = self.processor(text) File ""C:\usr\bin\Python26\lib\site-packages\trac\wiki\formatter.py"", line 291, in _macro_processor text) File ""build\bdist.win32\egg\tracjsgantt\tracjsgantt.py"", line 615, in expand_macro tasks = self._add_tasks(options) File ""build\bdist.win32\egg\tracjsgantt\tracjsgantt.py"", line 593, in _add_tasks tasks += self._format_ticket(ticket, options) File ""build\bdist.win32\egg\tracjsgantt\tracjsgantt.py"", line 527, in _format_ticket task += '""%s"",' % _start(t) File ""build\bdist.win32\egg\tracjsgantt\tracjsgantt.py"", line 486, in _start days = _workDays(t) File ""build\bdist.win32\egg\tracjsgantt\tracjsgantt.py"", line 452, in _workDays if self.fields['estimate'] and t[self.fields['estimate']] != '': KeyError: u'estimatedhours' }}} My relevant ini sections looks like this '''''Note:''' I don't have all the jsgantt fields configured, which may or may not mean something. Seems like unicode issue to me. '' [[BR]] __Also, I am on 0.12__ {{{ #!ini [ticket-custom] estimatedhours = text estimatedhours.label = Estimated # of Hours estimatedhours.order = 1 estimatedhours.value = 4 hours = text hours.label = Add Hours to Ticket hours.order = 2 hours.value = 0 parent = text parent.format = wiki parent.label = Parent ID parent.order = 7 pct_complete = select pct_complete.label = % Complete pct_complete.options = |0|5|10|15|15|40|50|60|75|80|90|95|99|100 pct_complete.order = 3 pct_complete.value = 0 [trac-jsgantt] days_per_estimate = 0.125 fields.estimate = estimatedhours #fields.worked = hours fields.percent = pct_complete fields.parent = parent }}}",defect,closed,normal,TracJsGanttPlugin,normal,worksforme,,,0.11