(Unscheduled tasks) Start_date without end_date

Hi there,

Unscheduled feature works fine, I don’t see both end_date and start_date as expected.

But Is it possible to have tasks with start_date only and end_date empty ?

I tried to delete end_date from database, and I see exceptions in the console and nothing is sown in the gantt, I wonder if it’s something that can be fixed or it’s a known issue, I did not find yet in the documentation about how to achive this.

I found these posts related to the same problem, but I did not find the solution:

Hello Dumitru,
Each regular task should have at least 2 date parameters: start_date, end_date, duration. When a regular task doesn’t have those parameters, it should be unscheduled:
https://docs.dhtmlx.com/gantt/desktop__unscheduled_tasks.html
Project tasks ignore the date parameters, so they can be loaded without those parameters:
http://snippet.dhtmlx.com/dd3973ee5

If you load tasks without enough date parameters, Gantt will assign them from their children or from other tasks. But in that case, you won’t be able to drag or resize these tasks. And if you resize their children, it will affect the dates of the task without start_date or end_date.
You can check how it works in the following sample:
http://snippet.dhtmlx.com/5/a44051dbd

You shouldn’t encounter issues when some tasks don’t have the necessary date parameters if you have a default configuration. But Gantt expects all tasks to have the date parameters. The only exception is the unscheduled tasks.

I tried deleting the end_date parameter for a task when auto-scheduling extension is used, but Gantt still calculates that date:
https://snippet.dhtmlx.com/pm60z9i9

So if you encounter an issue, probably, it is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.

You can also tell me how you imagine it should work, and I will tell you if it is possible to implement that in Gantt.