Why rollup working only with Project type item?

Hello
In our case we use we have Projects, Milestones and Events. Currently we use items how task type, because Projects and Milestones have by self range of date, but if use project type, range will be children dates.

It’s possible in new version add
When we have start_date and end_date in project type use this range, or in task type add support rollup?

Hello,
Currently, there is built-in ability to show tasks and milestones on their parent projects. As I understood your question, you want to roll up task to their parent task. If it so, you can implement a custom solution by using addTaskLayer method:
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html
You’re able to get the required task position from getTaskPosition method:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskposition.html

You need to match the location of your custom element (copy of the child task) to the parent task and apply task styles to that element.
Also, you need to repaint a parent task after changes with child task with the help of refreshTask method:
https://docs.dhtmlx.com/gantt/api__gantt_refreshtask.html

Please check the example of how it might be implemented:
https://snippet.dhtmlx.com/fsftrq1o

In our case we have 3 type data

  1. Project - object type task
  2. Milestone - object type task
  3. Event - object type milestone
    I want show event only in milestone or project bar

Look like your solution is what we need. Thank you!

Hello Hyhorii,
In addition to what Artyom said.
Right now, there is no built-in way to make tasks rollup on all parent types. This feature will be implemented in the future, but I cannot give you any ETA.

Another workaround is to manually add the child task IDs to the $rollup property of the parent task:
https://snippet.dhtmlx.com/8ozpsqjh

Also, right now, there is no way to set custom dates to the tasks with the project type. This feature will also be added in the future, but I cannot give you any ETA.

Hi Ramil,
Don’t worry, we are resolved our problem use yours solution in prev answer.
Thank you