Prerequisites
- A Gantt widget on a Polarion LiveDoc or Wiki page
- Permission to edit page and widget parameters
- Understanding of Polarion query syntax
How Page Parameters Work
Page parameters let users provide input values — such as a version number, team name, or date range — that dynamically modify the Gantt query. Instead of hard-coding filters into the widget configuration, you define parameters that users can change at runtime.Set Up Page Parameters
Follow these four steps to configure page parameters with a maximized Gantt view:Step 1: Add the Page Parameters Widget
- Edit the Polarion page
- Add a Page Parameters widget to the top of the page
- Add the Gantt widget below it
- Keep Maximize turned OFF on the Gantt widget at this stage
Step 2: Define Your Parameters
- In the Page Parameters widget, add the parameters you need (for example, a “Version” dropdown or a “Team” text input)
- In the Gantt widget configuration, reference the page parameters in your query
Step 3: Test the Configuration
- Save the page and view it in normal mode
- Set different parameter values in the Page Parameters widget at the top
- Verify that the Gantt data updates to reflect the selected filters
Step 4: Enable Maximize Mode
- Edit the page again
- Set the Gantt widget’s Advanced > Maximize parameter to Yes
- Save the page
The Page Parameters Toolbar Button
Thetb_parameters toolbar button (displayed as a ⚙️ Settings icon) appears only when the Gantt is in maximized view. Clicking it opens a modal dialog where users can:
- View and modify all defined page parameters
- Apply changes that reload the Gantt with updated filters
- Close the dialog by clicking the X button or pressing Escape
| Condition | Parameters Button Visible |
|---|---|
maximize = true and page has parameters | Yes |
maximize = false | No (parameters widget shown directly on page) |
MaximizeGanttView=false URL parameter | No (forces non-maximized mode) |
Access Page Parameters from Scripts
You can read page parameter values in an Item Script to customize task appearance based on user-selected parameters:pageParamId with the ID of the parameter defined in the Page Parameters widget.
When using enum-type page parameters for filtering or sorting, include the field ID in the enum field name. This ensures the Gantt widget correctly maps the selected value to the query filter.
Verify Your Configuration
- Open the Gantt page in maximized view
- You should now see the ⚙️ Settings button in the toolbar
- Click the Settings button to open the Page Parameters panel
- Select a different parameter value and observe the Gantt data reloading with the updated filter
- Press Escape or click the X button to close the panel
See Also
- Use Fullscreen and Maximize Mode for maximize mode configuration
- Use Dynamic Queries with Page Parameters for advanced query patterns
- Use Gantt Filters for built-in filtering options
- Write Page Scripts with Velocity for Velocity-based customization
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/pageparams.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/pageparams.jsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/PlansGanttWidget.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/columns/Table.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/TypeConfigWidgetParameters.java