On hold: waiting for the client
The homepage copy can't go on until the client sends the text, and they promised it for Tuesday. Put the task on hold for those days and level. The hold stays where you put it, and the engine gives the time to other work: Eli's blog migration moves into the hold.
Two kinds of break share the chart. A hatched block marked on hold is yours. A dashed join between two pieces of a bar is leveling's: it paused that task so someone could do something else first.
A hold is calendar time
"The client answers on Tuesday" is a fact about dates, not about the task's work. So a hold is written the way a day off is: as an exception on a calendar. The task gets a calendar of its own, based on the work week, with the hold's dates off. The task does no work on those days, and the person is free, so the load strip under the chart shows Eli still busy, on a different task.
// A hold is time off on the task's own calendar: a calendar based on
// the work week with the hold's dates as an exception. One change set
// adds it and gives it to the task.
project.apply({
calendars: { add: [{ id: "hold-3", base: "global",
worktime: { exceptions: [{ from: "2026-08-14", to: "2026-08-17" }] } }] },
tasks: { update: [{ id: 3, calendar_id: "hold-3" }] },
});
const result = project.level(); // every task is leveled, the held one too
A hold is measured in calendar days. Four days from a Friday end on Monday; the weekend inside it was off already.
The hold stays, the task is leveled
Because the hold belongs to the calendar, it does not travel with the task. Leveling may delay or split
the held task like any other, and the hold is still on its days afterwards. Re-level is one
level() call: it clears its own delays and pauses first (clearFirst is on
by default), so pressing it again never stacks them. The board then reads the whole plan with
getState().
// level() reports what it changed; the plan is read with getState().
// A pause in it is leveling's own: the hold is calendar time, not a pause.
project.getState().tasks = [
{ id: 3, start_date: new Date(2026, 7, 12),
end_date: new Date(2026, 7, 22), duration: 6 },
// Blog migration
{ id: 4, start_date: new Date(2026, 7, 14), leveling_delay: 2,
pauses: [{ at: 4, length: 4, by: "leveling" }], /* … */ },
];
When the links move a task past its hold, the hold has nothing left to cut, and the list under the chart marks it as passed.
Changing and removing holds
A calendar update replaces the exception list, so adding a second hold to a task or removing one is
the same call. The plan runs with gap_behavior: "compress": when a hold goes, the tasks
it pushed come back, and the plan is the one you had before.
// A second hold, or a removed one: the calendar's exception list
// is replaced as a whole.
project.apply({
calendars: { update: [{ id: "hold-3", worktime: { exceptions: [] } }] },
});
project.level();
Put a second hold on the homepage design and watch the tasks after it move, while both holds stay on their days. Calendars and their exceptions are described in Working time and calendars; the rules for leveling's delays and pauses in Delays and pauses.