From: vincenegri (vince.negri_at_gmail.com)
Date: Mon Nov 07 2005 - 12:58:44 CET
From: vincenegri <vince.negri@gmail.com> Message-ID: <17fa.436f4174@www.taskjuggler.org> Date: Mon, 7 Nov 2005 12:58:44 +0100 (CET) Subject: [taskjuggler-devel] Display of Tasks with subtasks
Hi all,
I have a plan which has some tasks with subtasks: you know, the sort of thing like this:
task foo {
task bar {
effort 1d
allocate fred
}
task baz {
effort 2d
allocate fred
}
}
In the resulting Gantt chart, "foo" is shown as a rolled-up task, as it should be. What I noticed, though, was that if I specify a desired start date for "foo", then the rolled up task is always shown as starting on that date, even when none of the sub-tasks start till later. :?
I worked around this problem as follows: created a milestone at the start of the project, and instead of giving a start date for "foo", made it depend on the milestone. This results in the same scheduling, but the gantt chart now shows "foo" as starting on the date "bar" starts, which is the desired result. :)
However, what I noticed was that dependency lines were drawn from the starting milestone not only to "foo", but *also* to "bar" and "baz", which looked messy.
By a one-line addition to TjGanttChart.cpp, I tweaked the code so that dependency lines were only drawn between tasks with the same parent. That cleans up the display of rolled-up tasks a lot, but I'm aware that it might result in the wrong result if you have the unusual situation where a dependency exists between tasks at different levels.
It seems to me that in the case above, the right thing (tm) to do is for the milestone task to realise that "baz" and "bar" are only followers by virtue of "foo" being a follower, and therefore not to draw dependency lines to them. I was going to work on a patch to this effect, but wondered if you had any comments on the overall issue (including the handling of start date in the absence of dependencies.)
-- To unsubscribe, email: taskjuggler-devel-unsubscribe@suse.com For additional commands, email: taskjuggler-devel-help@suse.com
This archive was generated by hypermail 2.1.7 : Mon Nov 07 2005 - 12:58:47 CET