How to render a milestone marker?

Modified on Tue, 20 Jun 2023 at 11:29 AM

NOTE: Please update to version 1.6 before following this guidance.


In this article, we show you how to add milestone/release markers in the Gantt chart. 


For example, let's add the marker for Version 20.0 for the date January 30, 2020.  In the Gantt chart, it will look like (See the green vertical line with the marker)




Currently, such milestone markers can be only added manually via scripting. 


To do so, open Widget properties > Advanced > Markers Script and add there:


    var marker = markerFactory.addMarker();
    marker.setText("20.0");
    marker.setDate("2019-01-27");
    marker.setColor("green");


NEW! 

From version 23.5.3 easy way to add Milestone Markers from Plans/Work items.

Use the following Marker Script:

markerFactory.addPlanMarkers("template.id:iteration AND project.id:gantt2","blue")
markerFactory.addWorkItemMarkers("type:release AND project.id:gantt2","publicLaunch","red")



If you would like to list the markers based on the data in Polarion (i.e. based on Time Points, Plans, ...) check: 

How to add milestone markers via Markers Script and Polarion API?

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article