taskjuggler/TaskJuggler — Issue #25: Calculation of super-task's completion-value
Author: maxmeyer
Created: 2011-12-09 09:22:25+00:00
State: open

Hi there,

I'm a bit confused how tj calculates the "super-task" completion-value. Maybe someone can help me with that?

I used

```ruby
project mt "project" 2011-11-01 +3m {
timezone "Europe/Berlin"

now 2011-11-15-13:00

scenario plan "Plan" { }

}

task task_1 "Task 1" {
task sub_task_1 "Sub-Task 1" {
end 2011-11-02
}
task sub_task_2 "Sub-Task 2" {
end 2011-11-02
}
}

task task_2 "Task 2" {
task sub_task_1 "Sub-Task 1" {
end 2011-11-30
}
task sub_task_2 "Sub-Task 2" {
end 2011-11-30
}
}

task task_3 "Task 3" {
task sub_task_1 "Sub-Task 1" {
end 2011-11-30
complete 100
}
task sub_task_2 "Sub-Task 2" {
end 2011-11-30
complete 100
}
}

task task_4 "Task 4" {
task sub_task_1 "Sub-Task 1" {
complete 0
end 2011-11-02
}
task sub_task_2 "Sub-Task 2" {
complete 0
end 2011-11-02
}
}

macro TaskTip [
tooltip istask() -8<-

<-query attribute='note'->

->8-
]

taskreport overview "" {
sorttasks tree
columns bsi { title 'WBS' },
name, start, end, complete {${TaskTip}}
}

textreport frame "" {
textreport index "Overview" {
formats html
center '<[report id="overview"]>'
}
}
```

And got that table of values:

```
WBS Name Start End Completion
1 Task 1 2011-11-02 2011-11-02 100%
1.1 Sub-Task 1 2011-11-02 2011-11-02 100%
1.2 Sub-Task 2 2011-11-02 2011-11-02 100%
2 Task 2 2011-11-30 2011-11-30 0%
2.1 Sub-Task 1 2011-11-30 2011-11-30 0%
2.2 Sub-Task 2 2011-11-30 2011-11-30 0%
3 Task 3 2011-11-30 2011-11-30 0%
3.1 Sub-Task 1 2011-11-30 2011-11-30 100%
3.2 Sub-Task 2 2011-11-30 2011-11-30 100%
4 Task 4 2011-11-02 2011-11-02 100%
4.1 Sub-Task 1 2011-11-02 2011-11-02 0%
4.2 Sub-Task 2 2011-11-02 2011-11-02 0%

Project: project Version: 1.0 - Created on 2011-12-09 10:05:55 with TaskJuggler
III v3.0.0
```

The interesting tasks are 3), 4). Although the Sub-Tasks are either 100% or 0% it defines the super-task completion value based on the actual date compared to the planned date.

It's no what I expected. I thought those values are based on the completion values of the sub-tasks.

BTW: I read http://www.taskjuggler.org/tj3/manual/Day_To_Day_Juggling.html#Using_completion_values before.

Cheers,

max_meyer