Prerequisites
- Your Gantt page must be a LiveReport page (page parameters are a LiveReport feature).
- The widget query type must be set to Lucene + Velocity (not pure Lucene).
1
Create Page Parameters
- Open your Gantt LiveReport page in Edit mode.
- Navigate to the page parameter configuration area.
- Add a new page parameter. For example, create a parameter with:
- ID:
department - Type: Enum (or any appropriate type for your use case)
- Label: Department
- ID:
2
Reference Parameters in the Widget Query
In the Gantt widget configuration, set the Query Type to Lucene + Velocity, then enter a query that uses the page parameter value:The
$pageParameters.department.toLucene() expression converts the selected page parameter value into a valid Lucene query fragment.3
Use Parameters for Time Range Filtering
Page parameters can also drive the Gantt time range. Create Replace
start and end date parameters, then reference them in Advanced > Gantt Config Script:start and end with your actual parameter IDs if they differ.4
Load Parent Items for Filtered Results
When filtering by a page parameter, you may want to display parent items above the filtered work items for context. Use a Page Script to traverse parent links and include them in the query:Then include the parent query in the widget query field to add the parent items to the Gantt chart.
Common Use Cases
Verification
After configuring dynamic queries, you should now see:- A page parameter dropdown or selector on your LiveReport page.
- Changing the parameter value reloads the Gantt with a filtered set of work items.
- The funnel icon in the footer reflects any time range filter applied via page parameters.