What You Will Achieve
After completing this tutorial, you will have:- A configured dependency role in your Gantt widget
- A dependency link created between two tasks using the graphical link builder
- An understanding of link direction and the four dependency types
Prerequisites
- Nextedy GANTT installed on your Polarion server
- A working Gantt chart with at least two work items (see Set Up a Basic Gantt Chart)
- Edit permissions on the Gantt page
Step 1: Configure the Dependency Role
Before you can create dependency links, you need to tell the Gantt chart which Polarion link role represents a dependency relationship.- Enter page edit mode by clicking Edit on the Polarion page
- Open the widget parameters by clicking the widget gear icon
- Find the Dependency Role parameter under Work Items
- Click Select and add
depends_on(or your project’s dependency link role) from the left list to the right - Click OK, then Apply
You can select multiple link roles. If you select more than one, the first role in the list is used when creating new dependency links via the graphical builder.
Step 2: Enter Edit Mode on the Gantt
- Click the Edit button in the Gantt toolbar
Step 3: Create a Dependency Link
- Hover over the source task bar (the predecessor task). You should see small circles appear on the left and right edges of the task bar.
- Click and drag from the right circle of the source task
- Drop onto the left circle of the target task (the successor task)
Step 4: Save Your Changes
Click the Save button in the Gantt toolbar to persist the dependency link to Polarion. After saving, the dependency link is stored as a Polarion work item link using the configured dependency role.Understanding Link Direction
Polarion’s defaultdepends_on link role points from a dependent item to its source (the opposite direction from standard Gantt convention). The Gantt chart automatically reverses the arrow direction so that dependency arrows flow correctly from predecessor to successor.
If your project uses a different link role where the source already points to the dependent item, you can configure this using the nextedy.gantt.workitems.default.forward_dependency administration property.
Dependency Types
The Gantt chart supports four standard dependency types:| Type | Code | Description |
|---|---|---|
| Finish-to-Start (FS) | 0 | Target cannot start before source finishes (default) |
| Start-to-Start (SS) | 1 | Target cannot start before source starts |
| Finish-to-Finish (FF) | 2 | Target cannot finish before source finishes |
| Start-to-Finish (SF) | 3 | Target cannot finish before source starts |
Dependency Constraint Violations
When auto-scheduling is enabled and a dependency constraint is violated (for example, a successor task starts before its predecessor finishes), the Gantt chart displays a red dotted line beneath the offending task. To resolve the violation, move the task to satisfy the dependency rules.Disabling Dependency Link Creation
If you want to display existing dependency links but prevent users from creating new ones, add the following to your widget’s Gantt Config Script parameter:Next Steps
- View Resource Allocation — enable the resource view to monitor team workload
- Set Up a Plans Gantt Chart — configure Plans Gantt for release planning
- Explore Guides for advanced dependency configuration, lag time, and auto-scheduling
Sources
Sources
KB ArticlesSource Code
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/IGanttService.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Link.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/IGanttDataService.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.jsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/workflow/GanttLinkedWorkItemsStatusCondition.java