How i can add parent and its subtask in gantt?

I have two pieces of data and I want to add the parent and its subtask in the gantt how do I do this?
@ArtyomBorisevich @ramil @rmoskal

Hello,

By default, Gantt won’t display the task which doesn’t have the non-existent parent, if it specified.
Please check the example:
DHTMLX Snippet Tool ;

One of the options is to check if the parent exists and if it’s not to remove that property in the onTaskLoading event handler:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskloading_event.html

Please check the example of how it might be implemented:
DHTMLX Snippet Tool ;

Another option is to save parent to another property and check it with newly added tasks using onParse event handler:
onParse Gantt Docs ;

Please check the following snippet:
https://snippet.dhtmlx.com/ozx7o6k9