#9675 closed defect (fixed)
userstart and userfinish fields cause errors on gant chart and roadmap
Reported by: | vclark | Owned by: | Chris Nelson |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
What is the correct way to add userstart and userfinish date fields. Also, is there a way to make them proper date fields that enforces formatting instead of text?
I installed TracJsGanttPlugin and added [TracPM] section to trac.ini. I only added the custom start and end fields, I did not add the sections for master tickets or sub/child tickets plugins. I am trying to add things incrementally to see what I want to use.
First I added the [TracPM] section. The date fields did not appear on my tickets so I realized I probably needed to add custom fields to the tickets. So I added this to my trac.ini:
[ticket-custom] userstart = text userstart.label = Start Date userfinish = text userfinish.label = End Date
The fields show up on my tickets. But if I try to access a gantt chart I get:
Error: Macro TracJSGanttChart(milestone=WC7 Upgrade) failed
Query filter requires field and constraints separated by a "="
And if I go to Roadmap I get:
Trac detected an internal error: TypeError: cannot concatenate 'str' and 'NoneType' objects
Attachments (0)
Change History (4)
comment:1 Changed 13 years ago by
comment:2 follow-up: 4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Got it working. Typo in trac.ini.
comment:3 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 13 years ago by
Replying to vclark:
Got it working. Typo in trac.ini.
Great. FWIW, my trac.ini
has:
userfinish = text userfinish.date = true userfinish.date_empty = true userfinish.label = Due Date userfinish.order = 17 userstart = text userstart.label = Start Date userstart.order = 2
The .date
makes the DateFieldPlugin pop up a calendars to select a date.
I solved the roadmap issue, it was unrelated to this plugin.
Still having trouble with start and end dates. Here are the relevant sections of my trac.ini: