Skip to main content

Field Mapping Parameters

ParameterTypeDefaultSupported Field TypesDescription
Start FieldStringgantt_startDate, DateTime, StringWork item field storing the task start date.
End FieldStringNoneDate, DateTime, StringWork item field storing the task end date.
Duration FieldStringgantt_durationInteger, StringWork item field storing the task duration in days (or hours in high-precision mode).
Progress FieldStringgantt_progressFloat, StringWork item field storing the task progress as a float value from 0.0 (0%) to 1.0 (100%).
Duration PrecisionEnumStandard (Days)N/AControls whether durations are tracked in days or hours. Values: Standard (Days), High (Hours).

Valid Field Combinations

You must configure at least two of the three date-related fields. The Gantt calculates the missing field from the other two.
CombinationStart FieldEnd FieldDuration FieldBehavior
Start + DurationRequiredNot setRequiredEnd date calculated from start + duration
Start + EndRequiredRequiredNot setDuration calculated from date range
End + DurationNot setRequiredRequiredStart date calculated from end - duration
diagram
If only one date field is mapped, the Gantt cannot calculate task scheduling. Tasks will appear at default positions without correct date representation.
For production use, configure proper Polarion custom fields with the recommended types:
FieldRecommended TypeAd-Hoc FallbackNotes
Start FieldDate (Only)StringDate fields provide native date picker in Polarion
End FieldDate (Only)StringDate fields ensure proper date validation
Duration FieldIntegerStringInteger provides numeric validation
Progress FieldFloatStringFloat supports decimal precision (0.0 - 1.0)
If a mapped custom field does not exist in Polarion, the Gantt automatically creates and uses a String ad-hoc custom field. While functional for testing, ad-hoc fields lack type validation and are not recommended for production use.

Duration Precision

The Duration Precision parameter switches the entire Gantt between day-based and hour-based scheduling:
ModeDuration UnitDate FormatUse Case
Standard (Days)DaysDate onlySprint planning, release scheduling
High (Hours)HoursDate + TimeFine-grained task scheduling, shift planning
Switching to High (Hours) precision changes the date format across the entire Gantt instance. All date fields display time components, and durations are stored in hours. See Schedule in Hours Instead of Days.

Administration Defaults

Default data mapping values for new Work Items Gantt widget instances:
PropertyDefaultDescription
nextedy.gantt.workitems.default.start_fieldgantt_startDefault start field name
nextedy.gantt.workitems.default.end_fieldNoneDefault end field name
nextedy.gantt.workitems.default.duration_fieldgantt_durationDefault duration field name
nextedy.gantt.workitems.default.progress_fieldgantt_progressDefault progress field name

Configuration Example

A typical data mapping for a project using custom Polarion Date fields:
  • Start Field: plannedStart (Date field)
  • End Field: plannedEnd (Date field)
  • Duration Field: gantt_duration (Integer field)
  • Progress Field: gantt_progress (Float field)
  • Duration Precision: Standard (Days)
With this mapping, the Gantt reads start and end dates from the plan fields, calculates duration automatically, and tracks progress via the float field.

Plans Gantt Data Mapping

When Show Plan Work Item is enabled in the Plans Gantt, an equivalent set of data mapping fields appears for the work items displayed under each plan:
ParameterDescription
Start Field (Plans)Start date field for work items within plans
End Field (Plans)End date field for work items within plans
Duration Field (Plans)Duration field for work items within plans
Progress Field (Plans)Progress field for work items within plans
These follow the same rules and field type requirements as the Work Items Gantt data mapping.

See Also

KB ArticlesSupport TicketsSource Code
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.java
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/TypeConfigWidgetParameters.java
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/columns/Table.java
  • prod-gantt-src/com.nextedy.polarion.gantt.client/src/types/pageparams.d.ts
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetDependenciesProcessor.java