Option 1: One-Time Comparison from the Toolbar
Use the toolbar Compare button for an ad-hoc comparison against any historical point in time.- Open your Gantt chart page in Polarion.
- Click the Compare button in the Gantt toolbar.
- In the comparison dialog, select one of three modes:
- Click Compare. The Gantt reloads and displays baseline bars behind each task bar, showing where tasks were scheduled at the selected point in time.
Option 2: Always-On Baseline Display
To show baseline bars every time the Gantt loads, configure the widget to display baselines automatically.- Open the page in edit mode and select the Gantt widget.
- Navigate to Widget Properties > Baselines.
- Set Show Baselines to Yes.
-
In Compare to date, choose one of:
- A relative date (T-minus, e.g., 30 days ago)
- A specific date in the past
- A page parameter to let users pick the date dynamically
- Save the page. The Gantt now loads with baseline overlay bars visible by default.
Option 3: API Approach with Item Script
For item-specific baselines (where each work item stores its own approved schedule), use the Item Script to populate baseline fields from custom fields. Add the following to Widget Properties > Advanced > Item Script:The field names passed to
util.getDate() and util.getDuration() must match your Data Mapping configuration. If your mapping uses start and initialEstimate, use those exact names in the script.Browsing Baselines with a Portal Page
You can create a Polarion wiki page that lists all project baselines and links each one directly to your Gantt with the comparison pre-applied. This approach uses a Velocity script that iterates through$project.baselinesManager.baselines and constructs links with the baselineRevision page parameter.
The Velocity-based baseline portal page requires Polarion wiki scripting permissions. Consult your Polarion administrator for access.