Modify ↓
#8993 closed defect (fixed)
Using root= for a ticket in the middle of a hierarchy breaks rollup
Reported by: | Chris Nelson | Owned by: | Chris Nelson |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos | Trac Release: | 0.11 |
Description
If you have a hierarchy like
A B C D E F G
and display a Gantt with root=B
, C and D are not indented and B does not show the cumulative time for them.
Attachments (2)
Change History (11)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Changed 13 years ago by
Attachment: | CorrectSpans.png added |
---|
Changed 13 years ago by
Attachment: | NoParentTicketTaskBars.png added |
---|
comment:3 follow-up: 4 Changed 13 years ago by
Following this change, with a macro call [[TracJSGanttChart(milestone=M1 - I9,lwidth=800,colorBy=owner)]]
, the parent tickets no longer span the child ticket's start and end dates:
At r10474:
comment:4 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Replying to rjollos:
Following this change, with a macro call
[[TracJSGanttChart(milestone=M1 - I9,lwidth=800,colorBy=owner)]]
, the parent tickets no longer span the child ticket's start and end dates: ...
So this change causes the problem for you that it fixes for me? :-(
Try this (untested):
-
tracjsgantt/tracjsgantt.py
diff --git a/tracjsgantt/tracjsgantt.py b/tracjsgantt/tracjsgantt.py index 4f3c606..500fe5a 100644
a b class TracJSGanttChart(WikiMacroBase): 701 701 task += '%s,' % 0 702 702 703 703 # pParent (parent task ID) 704 if options['root'] and str(ticket['id']) not in options['root'].split(' 704 if self.fields['parent'] \ 705 and (not options['root'] 706 or str(ticket['id']) not in options['root'].split('|')): 705 707 task += '%s,' % ticket[self.fields['parent']] 706 708 else: 707 709 task += '%s,' % 0
comment:7 Changed 13 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
(In [10475]) Changes root ticket's parents to 0 for easier processing. Refs #8993