Total slack of subtask

Hi team. I have problem about getTotalSlack(task)

If parenTask (type == project) is linked with other task, subTasks totalStack value is not correct.

I’ve screenshort 2 image, subtask totalSlack change when I link with projectTask or subTask

Hello Long,
Thank you for sending the screenshots, I will forward them to the dev team.
We know about that issue, and it will be fixed in the future.
I cannot give you an ETA, but I will notify you when it is fixed.

1 Like

Hello Long,
The dev team fixed the bug with the Total Slack calculation:
https://docs.dhtmlx.com/gantt/whatsnew.html#717

You can check how it works in the following sample:
https://docs.dhtmlx.com/gantt/samples/08_api/17_show_task_slack.html