add_dependency
Define task dependencies in OmniPlan by linking a predecessor and successor task, specifying dependency type (finish-to-start, start-to-start, etc.) and optional lead time.
Instructions
Add a dependency from predecessor to successor.
Args: predecessor_id: uniqueID of the prerequisite task. successor_id: uniqueID of the dependent task. kind: One of "FS" (finish-to-start, default), "SS", "FF", "SF". lead_time_seconds: Lead time before the successor can start, in work-seconds. Defaults to 0. Negative values are not supported here; if you need lag in the other direction, model it as a different dependency kind.
Returns:
JSON {predecessor_id, successor_id, kind, lead_time_seconds}.
lead_time_seconds is read back via
dep.leadTimeDuration.workSeconds after the write — a true
round-trip, not an echo. When no Duration is set on the
dependency (e.g. lead_time_seconds=0), the field is reported as
0 rather than null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| predecessor_id | Yes | ||
| successor_id | Yes | ||
| kind | No | FS | |
| lead_time_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |