depends <task> [, <task> ... ]

depends <task> [, <task> ... ]
Description

Specifies that the task cannot start before the task with the specified IDs have been finished. If multiple IDs are specified, they must be separated by commas. IDs must be either global or relative. A relative ID starts with a number of '!'. Each '!' moves the scope to the parent task. Global IDs do not contain '!', but have IDs separated by dots.

Each task ID can have optional attributes enclosed in braces.

By using the 'depends' attribute, the scheduling policy is automatically set to asap. If both depends and precedes are used, the last policy counts.

AttributesNameTypeDescription
taskID 
Optional Attributesgapduration, gaplength
Contexttask,
InheritableNoScenario Spec.No
See alsoscheduling, precedes

project p "P" "1.0" 2003-11-09 - 2003-12-24

task foo1 "foo1" {
  task foo2 "foo2" {
    start 2003-12-04
    milestone 
  }
  task foo3 "foo3" { 
    depends !foo2
    length 1d 
  }
}
task bar "bar" {
  depends foo1.foo2
  length 2d
}

task bar1 "bar1" {
  depends foo1 { gapduration 2d }, bar { gaplength 1d }
  duration 2d
}