Add Task unknown link


Hi, found this interesting issue. Below are the steps

  1. add task using the ‘+’ button in header
  2. copy tasks(using rest API) then
  3. gantt.clearAll()
  4. gantt.parse({ data: response.tasks, links: response.links })
  5. select multiple tasks
  6. indent
  7. collapse task
  8. add task using the ‘+’ button in header

Currently, I need to reload the page after copying tasks to fix the issue but it’s a pain for our users.

Hope there’s a solution for this.
Thanks !


That depends on how you clone tasks.
I couldn’t reproduce that issue in the following snippet:
Probably, the issue 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 in the snippet above and make sure that the issue is reproduced there. To make it easier, you can add 2 datasets - the one after you added tasks and another one after you cloned tasks.
Then, click on the Share 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.