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.

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):


.deadline element’s title text in an onGanttRender event handler.
