Baselines Widget Parameters
Comparison Modes
The Gantt supports three methods for comparing the current schedule against a historical snapshot:Automatic vs. One-Time Comparison
Automatic comparison (Show Baselines = Yes): The Gantt loads baseline data on every page render using the Compare to date value. Baseline bars are always visible.
One-time comparison (toolbar button): Click the Compare with History toolbar button to open a dialog where you select the comparison mode and reference point. The comparison persists until you close it or navigate away.
When
Show Baselines is configured but the user triggers a one-time comparison with a different date, the one-time comparison takes precedence and refreshes the baseline display.Compare to Date Formats
TheCompare to date widget parameter accepts the following formats:
NEW Badge for Added Tasks
Since version 25.3.0, tasks created after the selected comparison point are marked with a NEW badge. This helps you identify work items that were added to the schedule after the baseline was taken.Baseline Data Fields
When baseline comparison is active, the Gantt data response includes two additional fields per task:
These fields drive the secondary baseline bar rendered below each current task bar.
Baseline API
Named baselines are fetched from the Polarion server via the baselines API endpoint. Each baseline record contains:Pre-Conditions
- Unsaved changes: The Compare with History dialog cannot be opened when the Gantt has unsaved edits. Save or discard changes before comparing.
- Read-only mode: Baseline comparison is fully available in read-only mode.
Item Script Approach
For item-specific baselines (instead of a single historical date), use the Item Script API to set planned dates per item:Configuration Example
To show automatic baseline comparison against a date 30 days ago:- Open Widget Properties for the Gantt widget.
- In the Baselines section:
- Set Show Baselines to
Yes. - Set Compare to date to
T-30.
- Set Show Baselines to
- Save the widget parameters.
Related Pages
- Work Items Gantt Widget Parameters — main widget parameters
- Item Script API — per-item baseline scripting
- Toolbar Actions and Keyboard Shortcuts — Compare with History toolbar button