Subtask child of two different tasks

Hello,

is it possible to have a subtask with two different parents? In the gantt it must appear two times, below each of its parents, and when you modify anything in one, the other must be modified too. Is there any way to do this?

Thanks.

1 Reply

PE Punniyamoorthi Elangovan Syncfusion Team April 27, 2018 12:10 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support. 
We have analyzed your requirement. There are two types of views Resource view and Project view available in Gantt and we can achieve your requirement in only in resource view in Gantt by assigning a task with multiple resources, but your requirement cannot be achieved in project view directly. In project view all the tasks should be unique, therefore using editing events we can make two tasks identical in project view. Unlike project view, the resource view has only limited features related to resource allocation. 
Please refer the below code snippet for sharing a task between two resources in Gantt with resource view. 
var resourceGanttData = [ 
    { taskID: 2, taskName: "Plan budget", startDate: new Date("02/13/2017"), endDate: new Date("02/17/2017"), duration: 5, progress: "50", resourceId: [1, 3] }, 
]; 
We have prepared the JS Playground sample for your reference please find the sample link below 
Please let us know if you require further assistance on this. 
Regards, 
Punniyamoorthi 
 


Loader.
Up arrow icon