Opened 13 years ago
Last modified 11 years ago
#9928 new defect
Parameter openLevel works not
Reported by: | Owned by: | Chris Nelson | |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I'm using ChildTicketsPlugin.
When I set parameter !openLevel=1 it shows me all levels of tasks.
didley
Attachments (1)
Change History (9)
comment:1 Changed 13 years ago by
comment:2 follow-up: 3 Changed 13 years ago by
[TracPM] date_format = %Y-%m-%d days_per_estimate = 0.125 default_estimate = 4.0 fields.estimate = estimatedhours fields.finish = due_close fields.parent = parent fields.pred = blockedby fields.start = due_assign fields.succ = blocking fields.worked = totalhours parent_format = #%s
[trac-jsgantt] option.comp = 1 option.datedisplay = yyyy-mm-dd option.dur = 1 option.enddate = 1 option.expandclosedtickets = 1 option.format = month option.lwidth = 680 option.openlevel = 1 option.res = 0 option.root = option.schedule = asap option.showdep = 0 option.startdate = 1 option.usermap = 0
My macro command for it. I did set openLevel=1 in trac.ini . But even I set it in my macro command it works not also.
[[TracJSGanttChart(milestone=MND: Abschlussarbeiten, type=workpackage, format=quarter, omitMilestones=1, colorBy=owner)]]
Changed 13 years ago by
Attachment: | screenshot.JPG added |
---|
comment:3 Changed 12 years ago by
Replying to didley@gmx.de:
...
... option.openlevel = 1 ...
"openLevel" is camelcased (as in the summary of this ticket but not in your configuration.
comment:4 Changed 12 years ago by
Now it's camelcased in my configuration. But it works not.
In addition when I change parameter through admin-webinterface of trac after that all option not camlecased again.
comment:5 Changed 12 years ago by
I have never tried to set it in my trac.ini
.
When passed to the macro invocation, it works for me. For example, in a high-level ticket, I show all of its children with:
[[TracJSGanttChart(root=self,hoursPerDay=6,schedule=alap,resolution!=cancelled,format=month,omitMilestones=1,max=999,openLevel=2)]]
comment:6 Changed 11 years ago by
Hello,
I have the same issue, and there is an error in the code with integer comparisons.
Here is a fix to apply in tracjsgantt.py
:
-
.py
old new 521 521 task += '%s,' % self.pm.parent(ticket) 522 522 523 523 # open 524 if ticket['level'] < options['openLevel']and \524 if int(ticket['level']) < int(options['openLevel']) and \ 525 525 ((options['expandClosedTickets'] != 0) or \ 526 526 (ticket['status'] != 'closed')): 527 527 openGroup = 1
Can you attach a screen shot and the relevant sections of
trac.ini
?