Add Task unknown link


#1

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 !


#2

Hello,
That depends on how you clone tasks.
I couldn’t reproduce that issue in the following snippet:
http://snippet.dhtmlx.com/5/7bbeb09bc
https://files.dhtmlx.com/30d/72df722b8c6cd8dfb0c91538682b5c25/vokoscreen-2021-11-25_13-42-19.mkv
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.