What the Metadata Field Stores
When you enable advanced dependency types, the Gantt needs to store two additional pieces of information for each dependency link that Polarion’s native link roles do not capture:- Dependency type — which of the four types (FS, SS, FF, SF) the link uses
- Lag — how many days of delay or lead time apply to the link
gantt_dependency_metadata on the work item. The field stores a JSON-serialized map that associates each linked target work item ID with its dependency type code and lag value.
Step 1 — Verify the Custom Field Exists
Thegantt_dependency_metadata field is created automatically when you first enable advanced dependencies. Confirm it exists:
- Navigate to Administration > Custom Fields for your project.
- Search for
gantt_dependency_metadata. - Verify it is of type String or Text.
Step 2 — Hide the Field from End Users
The metadata field contains a JSON structure that is not meant for manual editing. Hide it from work item forms:- Open Administration > Form Configuration for each relevant work item type.
- Locate
gantt_dependency_metadatain the field list. - Set it to hidden so it does not appear on the form layout.
| Action | Result |
|---|---|
| Field visible on form | Users may accidentally edit or clear the JSON, breaking dependency metadata |
| Field hidden on form | Metadata is managed exclusively by the Gantt, preventing accidental corruption |
Step 3 — Enable Advanced Dependencies
If you have not already done so, add the following to Project / Repository Administration > Configuration Properties:0).
How Data Flows
When you create or modify a dependency link in the Gantt chart:- The Gantt creates (or updates) a Polarion work item link using the configured link role.
- The Gantt writes the dependency type code and lag value into the
gantt_dependency_metadatafield on the source work item as a JSON entry keyed by the target work item ID. - When the chart loads, the Gantt reads the metadata field to restore the correct dependency type and lag for each link.
- The Polarion work item link is removed.
- The corresponding entry in
gantt_dependency_metadatais also removed.
Verification
You should now see:- The
gantt_dependency_metadatafield listed in your project’s custom fields - The field hidden from work item forms
- Advanced dependency types (SS, FF, SF) and lag values preserved correctly after saving and reloading the Gantt chart
See Also
- Configure Advanced Dependency Types (FS, SS, FF, SF)
- Configure Link Lag and Delay
- Create and Configure Dependency Links
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Data.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/GanttService.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/TypeConfigWidgetParameters.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/WorkItemsGanttWidget.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Link.java