How can i get all the data of type milestone?

Hi,
Is there an API to get data based on type?
I want to get all the data of type milestone,then change their constraint type to must start at or must end at.

Hello Zhang,
You can use the getTaskBy method to obtain all tasks based on the specific property:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskby.html

Here is an example: