Automatic conversion of task to project when child added

Hi guys, is there an easy way to automatically convert a task to a “project” when a child task is added to it? Not sure if this is a flag or if I have to do this with an event hook.

Thanks

Hi,
check this example:
docs.dhtmlx.com/gantt/samples/04 … _type.html