How to schedule resources in parent tasks for as long as the subtasks last

7 views
Skip to first unread message

Roelant Ossewaarde

unread,
6:47 AM (11 hours ago) 6:47 AM
to TaskJuggler Users
Hi all,

Consider the situation where there is an academic project that runs for a few years. One of the subprojects runs for a short period of time. I'd like to schedule a resource to provide oversight over the tasks in the subproject.  

When I use the following code, the resource workpackageManager is scheduled for the duration of the project, not for the duration of wp0. With the following code:

task project "Project" {
  task wp0 "First workpackage" {
    task oversight "Workpackage management"{
      start ${projectstart}
      allocate workpackageManager
      limits {  weeklymax 1h {resources workpackageManager} }
    }
    task task1 "Task 1" {
      allocate Scientist1
      length 1w
    }
    task task2 "Task 2" {
      depends !x
      allocate Scientist1
      length 1w
    }
  }

See the attached Gantt chart. Obviously, oversight for that work package should end whenever that work package concludes (and not whenever the project concludes). 

A relative end date for the oversight task would be helpful ("end task2{onend}"), but onend does not yield the date that "end" wants as an argument. 

I could in theory specify the end date after inspecting whatever the scheduler decided the end date of the subtasks should be, but there surely must be a less manual way?

Kind regards,

Roelant.


Screenshot 2026-05-31 at 12.23.22.png
Reply all
Reply to author
Forward
0 new messages