Opened 10 years ago

Last modified 8 years ago

#9928 new defect

Parameter openLevel works not

Reported by: didley@… Owned by: Chris Nelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


I'm using ChildTicketsPlugin.

When I set parameter !openLevel=1 it shows me all levels of tasks.


Attachments (1)

screenshot.JPG (162.7 KB) - added by didley@… 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by Chris Nelson

Can you attach a screen shot and the relevant sections of trac.ini?

comment:2 Changed 10 years ago by didley@…

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
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 10 years ago by didley@…

Attachment: screenshot.JPG added

comment:3 in reply to:  2 Changed 10 years ago by Chris Nelson

Replying to


option.openlevel = 1

"openLevel" is camelcased (as in the summary of this ticket but not in your configuration.

comment:4 Changed 10 years ago by didley@…

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 10 years ago by Chris Nelson

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:


comment:6 Changed 8 years ago by


I have the same issue, and there is an error in the code with integer comparisons.

Here is a fix to apply in

  • .py

    old new  
    521521            task += '%s,' %
    523523        # open
    524         if ticket['level'] < options['openLevel'] and \
     524        if int(ticket['level']) < int(options['openLevel']) and \
    525525                ((options['expandClosedTickets'] != 0) or \
    526526                     (ticket['status'] != 'closed')):
    527527            openGroup = 1

comment:7 Changed 8 years ago by Chris Nelson

In 13836:

Make sure ticket level and open level are integers when compareing. Refs #9928.

This should be harmless for subtickets plugin and seems to make
childtickets work better.

comment:8 Changed 8 years ago by Chris Nelson

I've incorporated that patch. Please try the latest version.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Chris Nelson.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.