Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

TracGantt 0.3 Released July 12, 2006 Will Barton <wbb4@opendarwin.org> http://ideas.water-powered.com/gantt

The TracGantt plugin is very easy to use, and only requires a few very simple steps to set up. First, you will need to download the plugin, either in Python egg form, or in source form.

To install from a Python egg, download the egg, and then place it in your Trac instance's plugins directory and restart tracd, if that is how you are running Trac. Additional Trac plugin documentation can be found in the Trac documentation.

To install from source, download the source file and unarchive it, then run:

$ python setup.py bdist_egg

To build a Python egg. Once the egg file is built, copy it to the Trac plugins directory as described above.

Next, you will need to edit your Trac config file to add custom fields to tickets, as well as set the expected date format of those fields.

The first things to add are the new ticket fields. If you already have a ticket-custom section, append these to it:

[ticket-custom] due_assign = text due_assign.label = Due to assign due_assign.value = DD/MM/YYYY

dependencies = text dependencies.label = Dependencies dependencies.value =

due_close= text due_close.label = Due to close due_close.value = DD/MM/YYYY

include_gantt = checkbox include_gantt.label = Include in GanttChart include_gantt.value =

This will add four new fields to tickets, a "Due to assign" field, which contains the date by which this ticket should be assigned, a "Dependencies" field, for listing ticket numbers upon which this ticket depends, a "Due to close" field, which contains the date by which this ticket should be closed, and finally a checkbox that allows the ticket to be included in Gantt charts.

In addition, TracGantt provides several tweakable configuration knobs that you can use to change the behavior of the gantt charts. They are listed below with their default values.

[gantt-charts] # The format of dates entered by humans in the above ticket fields date_format = %m/%d/%Y

# Include the ticket summary in the gantt chart display include_summary = true

# Trim the included summary to the given number of characters summary_length = 16

# Use the creation date of a ticket as the "due assign" date if no # assignment date is given use_creation_date = true

# Show on the gantt chart the date the ticket was opened, to contrast # with the assignment date. show_opened = true

NOTE If you are placing the module anywhere outside of Trac's standard 'plugins' directory (i.e. to share across Trac instances), then you will also need to add:

[components] tracgantt.* = enabled

to your Trac config file. Again, this is only necessary if the egg file is placed outside of the Trac 'plugins' folder, in a standard Python search path.

If you are using Trac with Apache and mod_python, you may also need to restart Apache, to avoid the plugin being accessible from one Apache process, but not others.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.