Free Software & Hacking & Python Gustavo Sverzut Barbieri on 19 Apr 2007 01:14 pm
Generating Gantt graphs from TaskJuggler projects without using its UI
Last week I was faced with a problem I had 2 years ago: generating Gantt graphs for our projects. While at IBM/LTC, I found TaskJuggler to be a nice tool, very developer oriented, but it lacked means to generate nice graphs… I’ve requested this feature in 2005, it got implemented by Chris, but one issue still remain: how to generate those automatically, without any UI, and in a scalable format to be used in our LaTeX reports and maybe some multi-page poster.
So this weekend I implemented this tool and it’s quite usable already! It’s a Python+ElementTree+PyX application that parsers TaskJuggler’s XML (tjx) and output PDF, PS or EPS, with PDF and PS being able to output segmented, multi page, poster documents.
Chenca is developing a more report oriented graph, generating LaTeX tables instead of drawings, he promised to publish it as well
Source is available at: http://barbieri-playground.googlecode.com/svn/python/taskjuggler-utils/ (SVN)

3 Responses to “Generating Gantt graphs from TaskJuggler projects without using its UI”
Leave a Reply
You must be logged in to post a comment.
on 05 Jul 2007 at 11:41 am 1.al123 said …
Hello,
Very interesting job, however it seems the version on http://barbieri-playground.googlecode.com/svn/python/taskjuggler-utils/
doesn’t work. There are some errors in both files.
Could you please post the version you are using ?
Thanks in advance.
on 05 Jul 2007 at 12:14 pm 2.al123 said …
Hello,
Very interesting job. However the version of the code which is at http://barbieri-playground.googlecode.com/svn/python/taskjuggler-utils/
doesn’t run. There are typos and more.
Could you please point us to the corrected version you are using ?
Thanks in advance.
on 05 Jul 2007 at 1:07 pm 3.Gustavo Sverzut Barbieri said …
Hello,
I use python2.4, but people using 2.5 reported it runs fine too.
Be sure you have pyx installed and that you get a version-2.0 XML from taskjugger, just check if you have something like this in your project.tjp file:
xmlreport “XML-Report.tjx” {
version 2
}