Skip to main content
Advanced dependency types (SS, FF, SF) require Gantt version 2.7.0 or later. Earlier versions only support Finish-to-Start.

Dependency Type Codes

CodeTypeNameConstraint
0finish_to_startFinish-to-Start (FS)Target task cannot start before source task ends (may start later)
1start_to_startStart-to-Start (SS)Target task cannot start until source task starts (may start later)
2finish_to_finishFinish-to-Finish (FF)Target task cannot end before source task ends (may end later)
3start_to_finishStart-to-Finish (SF)Target task cannot end before source task starts (may end later)
Each dependency link in the Gantt chart carries the following properties:
PropertyTypeDefaultDescription
idStringGeneratedUnique identifier derived from the Polarion link role and connected work item IDs
sourceStringRequiredID of the predecessor (source) task in the dependency
targetStringRequiredID of the successor (target) task in the dependency
typeString0 (FS)Dependency type code: 0=FS, 1=SS, 2=FF, 3=SF
roleIdStringSee applicationThe Polarion link role ID used for this dependency link (e.g. dependson)
roleNameStringSee applicationHuman-readable name of the Polarion link role (e.g. “depends on”)
lagInteger0Lag time in days (positive) or lead time (negative) applied to the dependency

Dependency Type Visual Reference

diagram

Enabling Advanced Dependency Types

By default, only Finish-to-Start (0) dependency links are supported. To enable all four types, set the following configuration property:
nextedy.gantt.default.advanced_dependencies=true
Set this property in Project / Repository Administration > Configuration Properties.
When using advanced dependency types, the Gantt stores metadata in a custom field called gantt_dependency_metadata. Hide this field from end users in the Polarion Form Configuration.

Dependency Role Widget Parameter

The Dependency Role widget parameter controls which Polarion work item link roles represent dependency relationships. Configure this under Widget Properties > Work Items > Dependency Roles.
SettingDescription
EmptyNo dependency links are shown
Single role selectedAll dependency links use this role
Multiple roles selectedThe first role is used when creating new dependency links via drag
You can optionally map each dependency type to a different Polarion link role by adding these configuration properties:
nextedy.gantt.workitems.linkRoles.finish_to_start=your_FS_role_id
nextedy.gantt.workitems.linkRoles.start_to_start=your_SS_role_id
nextedy.gantt.workitems.linkRoles.finish_to_finish=your_FF_role_id
nextedy.gantt.workitems.linkRoles.start_to_finish=your_SF_role_id
Multiple link roles per dependency type are supported as comma-separated values:
nextedy.gantt.workitems.linkRoles.finish_to_finish=dependency_feature_ff,dependency_task_ff
By default, the Gantt reverses the arrow direction to match standard Gantt chart conventions (source points to dependent item). If your Polarion link role already points from source to dependent, set the forward dependency property:
nextedy.gantt.workitems.default.forward_dependency=true
To prevent users from creating dependency links by dragging, add this to the Gantt Config Script widget parameter:
gantt.config.drag_links = false;

Constraint Violation Indicators

When a dependency constraint is violated (for example, a target task is scheduled before its source finishes in a Finish-to-Start relationship), the Gantt displays a red dotted line under the incorrectly positioned task bar. Move the task to comply with the dependency rules to resolve the violation.
When auto-scheduling is enabled, the Gantt automatically recalculates task dates based on dependency constraints. Dependency links that are hidden or not loaded due to limits are ignored by the scheduling engine.

Lag and Lead Time

Each dependency link supports a lag property:
ValueEffect
Positive integer (e.g. 2)Delays the successor by the specified number of days after the dependency constraint
0No lag (default)
Negative integer (e.g. -1)Creates lead time, allowing the successor to begin before the dependency constraint
KB ArticlesSupport TicketsSource Code
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Data.java
  • prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.js
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Link.java
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/TypeConfigWidgetParameters.java
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/WorkItemsGanttWidget.java