How to display the full duration of 12 days when there are no child items for a project
This is a demo on your website. When I deleted it to only the first one, its duration also changed
I need help.
Hello,
The tasks with the project
type ignore the date parameters (start_date
, end_date
, duration
) as they obtain them from their children:
https://docs.dhtmlx.com/gantt/desktop__task_types.html#projecttasks
If a project task doesn’t have children, it obtains the start_date
from other tasks or from the current date. And its end_date
depends on the min_duration
parameter:
https://docs.dhtmlx.com/gantt/api__gantt_min_duration_config.html
There is no way to change how it works. If you need to have custom dates for the parent tasks, you need to set the task
type for them:
https://docs.dhtmlx.com/gantt/desktop__task_types.html#regulartasks
In the future, the dev team will add a way to add custom dates to the project
tasks, but I cannot give you any ETA.