Opened 15 years ago
Closed 15 years ago
#8309 closed defect (worksforme)
Estimated hours fails.
| Reported by: | Jay | Owned by: | Chris Nelson |
|---|---|---|---|
| Priority: | normal | Component: | TracJsGanttPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
This may be relate to the follow on comments in #8289 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.
Also, I am on 0.12
[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
Attachments (0)
Change History (4)
comment:1 Changed 15 years ago by
| Status: | new → assigned |
|---|
comment:2 Changed 15 years ago by
Sorry It took me a bit to get back, was out.
yes, i was using the most recent version at the time, however I will get the latest version from the repo as of today and report back (just in case.)
comment:3 Changed 15 years ago by
Still not sure why this doesn't work. I have verified I have the "latest greatest" version. that said, I strongly suspect it is related to my site somehow, and not the plugin directly. I would close this for now, and if later I figure something out, I will re-open it, or create a new one.
Thanks.
comment:4 Changed 15 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | assigned → closed |



This works for me with estimate and percent enabled and worked not. Are you using the most recent code?