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.
1
Verify the Custom Field Exists
The
gantt_dependency_metadata field must be defined as a custom field on the relevant work item types before advanced dependency data can be stored — the Gantt does not create Polarion custom field definitions for you. Some project templates (such as the Gantt Demo) already include it. Confirm it exists, and create it if it does not:- Navigate to Administration > Custom Fields for your project.
- Search for
gantt_dependency_metadata. - If it is missing, add it; verify it is of type String or Text.
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.
3
Enable Advanced Dependencies
If you have not already done so, add the following to Project / Repository Administration > Configuration Properties:Without this property, the Gantt does not read or write to the metadata field, and all dependency links default to Finish-to-Start (type
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