Planning tasks with resource allocation constraints

5 views
Skip to first unread message

Yaroslav Shitov

unread,
Dec 9, 2025, 12:21:29 PM (14 days ago) Dec 9
to TaskJuggler Users
Hello everyone.

I have a task to plan a list of tasks for a resource group. There are many tasks, and the resource group is large. I need to ensure that no more than N (1...4) resources from the resource group work on a task and that the resources assigned to a task do not change.

How I did it now:

resource core "core team" {
    resource core1 "core-1"
    resource core2 "core-2"
    resource core3 "core-3"
    resource core4 "core-4"
    resource core5 "core-5"
}

macro allocate_core1[
    allocate core1 {alternative core2, core3, core4, core5
        persistent}
]

macro allocate_core2[
    allocate core1 {alternative core2, core3, core4, core5
        persistent}, core2 {alternative core1, core3, core4, core5
        persistent}
]

And now I can allocate 1 or 2 resources from the team by calling the macro:
task QW740 "QW740"{
            effort 120h
            ${allocate_core1}
        }
task QW999 "QW999"{
            effort 400h
            ${allocate_core2}
        }

Are there other ways to solve this task?
Is it possible to describe a task in such a way that I can specify exactly how many resources need to be allocated within the task itself, and can they be changed over time?
Reply all
Reply to author
Forward
0 new messages