Version 4 (modified by figaro, 9 years ago) (diff)

Tagged with license

Chart Of Upcoming Milestones Macro


When Trac is used to manage many projects, it is useful to get a dashboard overview of all milestone dates in the Trac instances. This macro automatically generates such a chart.

Key features:

  • You may put in a news box.
  • Overdue dates can be displayed colored.
  • The milestone chart is sorted by date.
  • You can set a filter which milestones are displayed by setting an SQL-like pattern.

Bugs/Feature Requests

Existing bugs and feature requests for UpcomingMilestonesChartMacro are here.

If you have any issues, create a new ticket.


2 / 2


Download the zipped source from [download:upcomingmilestoneschartmacro here].


Just copy the .py file in the plugin directory of Trac.


You can check out UpcomingMilestonesChartMacro from here using Subversion, or browse the source with Trac.


An example usage::
You can see here how to use this macro:
   #!div class=blogflash
   [[UpcomingMilestonesChart(%-%,10,Next Milestone Dates,yellow)]]
The example sets
 * an SQL filter pattern {{{ %-% }}} means here only to display milestones containing a minus in the middle of the name
 * a maximum of 10 milestones
 * a title
 * the color of overdue milestones, leave it out and just set the comma for no color
 * and puts it in a news box

It is then displayed as:

based on these milestones:

Recent Changes

18188 by Cinc-th on 2021-04-11 07:22:57
UpcomingMilestonesChartMacro: simplify imports by unifying different codepath for Python 2/3 for !StringIO.
18159 by Cinc-th on 2021-04-07 19:30:49
UpcomingMilestonesChartMacro: Python 3 import error fix for !StringIO.
16990 by rjollos on 2017-11-18 10:31:28
Add metadata


Author: falkb
Maintainer: falkb

Attachments (2)

Download all attachments as: .zip