Skip to main content

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.
  1. Open the page in Edit mode.
  2. Click the widget gear icon to open Widget Parameters.
  3. Navigate to the Dependency Role parameter.
  4. Ensure no link roles are selected.
  5. Click Apply.
With no Dependency Role configured, the Gantt will not display any dependency arrows and users cannot create new links.
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.
If you want to keep existing dependency links visible but prevent users from creating new ones by dragging, use a Gantt Config Script:
  1. Open the page in Edit mode.
  2. Open Widget Parameters > Advanced > Gantt Config Script.
  3. Add the following line:
gantt.config.drag_links = false;
  1. Click Apply.
This disables the link creation handles (the circles at the start and end of each task bar) while still rendering all existing dependency arrows.

Comparison of Methods

MethodExisting Links VisibleNew Links AllowedLink Handles Shown
Empty Dependency RoleNoNoNo
gantt.config.drag_links = falseYesNoNo
Both configured (normal)YesYesYes
If you want a fully read-only Gantt chart with no editing at all, enable the readonly widget parameter. This disables all editing including dependency link creation, task dragging, and resizing.
Dependency links apply to work items only. In Plans Gantt mode, plans have parent-child relationships but do not support direct dependency links between them.

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

See Also

KB ArticlesSupport TicketsSource Code
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/IGanttDataService.java
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/IGanttService.java
  • prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.js
  • prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Rewritten Tests/testGanttInlineStartEnd.cy.ts
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/WorkItemsGanttWidget.java