Option 1: Type-Based Milestones
The simplest approach sets an entire work item type to render as milestones. Navigate to the work item type configuration in Polarion and set the Gantt Presentation Mode to Milestone (Only date, zero duration). All work items of that type will appear as diamond shapes on the timeline instead of task bars. Milestones represent a single point in time with zero duration.| Presentation Mode | Visual Appearance | Behavior |
|---|---|---|
TASK (Item) | Standard task bar | Directly editable, shows duration |
PROJECT (Derived Schedule) | Summary bar spanning children | Dates computed from child extents, not directly editable |
MILESTONE (Milestone) | Diamond shape | Zero duration, shows only the start date |
AUTO (Auto-Mode) | Automatic | Renders as TASK if no children, PROJECT if has children |
Option 2: Conditional Milestones via Item Script
Use an Item Script when you need to control which individual items appear as milestones based on conditions beyond the work item type. Navigate to Widget Properties > Advanced > Item Script and add a script that setstask.type to "milestone":
Schedule Milestones from a Custom Date Field
By default, milestones use the date fields configured in the widget Data Mapping section. To pull the date from a different field (such as a “Public Launch” custom field), use an Item Script that overrides the schedule for unplanned items:Render a Visual Milestone Marker from a Custom Field
To highlight an important date on a work item without changing its actual schedule, render a small diamond marker at the custom field date. This requires both an Item Script and a Gantt Config Script. Item Script (passes the custom field value to the client):Alternative: Use Milestone Markers
For dates that are not tied to a specific work item (such as version releases or phase deadlines), consider using milestone markers instead. Markers appear as vertical lines spanning the entire timeline. See Create and Configure Markers for setup details.Verification
You should now see milestone diamonds on the Gantt timeline for the configured work item types or script conditions. Hover over a milestone to verify the tooltip shows the correct name and date. If you used a custom date field, confirm the diamond appears at the expected date position.See also
- Create and Configure Markers
- Configure Item Colors
- Write Item Scripts
- Write Gantt Config Scripts
- Show Deadlines and Due Dates
Sources
Sources
KB Articles
- Using Milestone Work Items
- Using Milestone Markers
- Setup GANTT that shows Polarion Plans and Work Items
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/milestones/milestone-tooltip-date.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Rewritten Tests/testGanttEndMilestones.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Marker.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/default.jsonprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/types/PresentationMode.java