Per-Type Configuration Parameters
Each work item type added to the Work Item Types configuration block exposes the following sub-parameters:| Name | Type | Default | Description |
|---|---|---|---|
Presentation Mode | Enum | See application | Controls how the type renders on the chart: as a regular task bar, a project (summary) bar, or a milestone diamond. |
Parent Mode | Enum | See application | Determines how parent-child hierarchy is resolved for this type. Options include link-role-based or enumeration-based parent resolution. |
Parent Enum | String | See application | When Parent Mode uses enumeration-based resolution, specifies the enum field to determine the parent work item. |
Additional Dialog Fields | Field list | Empty | Extra work item fields displayed in the lightbox editor for this type, beyond the standard start/end/duration/progress fields. |
Sync to Plans | Boolean | false | When enabled, links work items of this type to a Polarion Plan and adds plan due date markers to the chart. |
Enable Create | Boolean | false | When enabled, this type appears in the New toolbar dropdown, allowing users to create work items of this type directly from the Gantt chart. |
Extra Child Query | String | Empty | A Lucene query that loads additional child items for this type beyond the standard parent-child link traversal. |
Dynamic Type | Boolean | false | When enabled, the presentation mode of the work item is determined dynamically at runtime based on whether it has children. |
Default Work Item Types
The Gantt chart ships with three built-in work item type configurations:| Type ID | Presentation Mode | Description |
|---|---|---|
feature | Task (leaf) | Standard task bars displayed as individual bars on the chart. |
workpackage | Project (summary) | Parent containers displayed as summary bars spanning child items. |
release | Milestone | Milestone-style containers rendered as diamond shapes with no duration. |
Presentation Modes
Collapse Behavior via Item Script
You can control the initial collapsed state of parent work items per type using the Item Script API:task.open property to false, causing the item to appear collapsed when the Gantt chart loads.
Work Items Gantt vs. Plans Gantt
The per-type configuration applies differently depending on the Gantt mode:| Aspect | Work Items Gantt | Plans Gantt |
|---|---|---|
| Type source | Polarion work item type ID | Plan template type |
| Presentation modes | Task, Project, Milestone | Project, Milestone |
| Enable Create | Creates a new work item | Creates a new plan from a template |
| Parent resolution | Link roles or enumeration | Plan hierarchy |
| Additional Dialog Fields | Work item custom fields | Plan-level fields |
Configuration Example
To configure anepic type as a project container and a release type as a milestone:
- Open Widget Properties for the Gantt widget.
- In the Work Item Types section, add an entry for
epic:- Set Presentation Mode to
Project - Set Enable Create to
Yesif you want users to create epics from the toolbar
- Set Presentation Mode to
- Add another entry for
release:- Set Presentation Mode to
Milestone
- Set Presentation Mode to
- Save the widget parameters.
Setting a type as
Project or Milestone does not add or remove items from the Gantt view. It only changes how items of that type are rendered. The visible items are determined by the Work Items data set parameter in Work Items Gantt Widget Parameters.Related Pages
- Work Items Gantt Widget Parameters — main widget parameter reference
- Plans Gantt Widget Parameters — plan-type configuration
- Data Mapping Parameters — field binding for start, end, duration, progress
- Item Script API — scripting for per-item behavior customization
Sources
Sources
KB Articles
- Work Items Gantt Widget Parameters
- Plans Gantt Widget Parameters
- Can I add multiple Work Items Gantt Widgets to single report?
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/TypeConfigWidgetParameters.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Config.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetDependenciesProcessor.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/default.jsonprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidget.java