When to Disable Linking
You may want to disable dependency link creation when:- The Gantt chart is used for read-only reporting
- Dependencies are managed exclusively in Polarion rather than on the chart
- You want to prevent accidental link creation during drag operations
Method 1 — Remove the Dependency Role
The simplest way to hide all dependency links entirely is to leave the Dependency Role widget parameter empty.- Open the page in Edit mode.
- Click the widget gear icon to open Widget Parameters.
- Navigate to the Dependency Role parameter.
- Ensure no link roles are selected.
- Click Apply.
Removing the Dependency Role hides all dependency arrows from the chart. The underlying Polarion work item links are not deleted — they are simply not displayed.
Method 2 — Disable Drag-to-Link Only
If you want to keep existing dependency links visible but prevent users from creating new ones by dragging, use a Gantt Config Script:- Open the page in Edit mode.
- Open Widget Parameters > Advanced > Gantt Config Script.
- Add the following line:
- Click Apply.
Comparison of Methods
| Method | Existing Links Visible | New Links Allowed | Link Handles Shown |
|---|---|---|---|
| Empty Dependency Role | No | No | No |
gantt.config.drag_links = false | Yes | No | No |
| Both configured (normal) | Yes | Yes | Yes |
Verification
You should now see:- Method 1: No dependency arrows drawn on the Gantt chart
- Method 2: Existing dependency arrows visible, but no link creation circles appear when hovering over task bars in edit mode