Not able to establish task relationship.

Task relationship between siblings like 1.2.5 (child of 1.2) and task  1.2.6 (child of 1.2) working fine. 

But not able to set it in below cases.

  1.  Not able to set task relationship between task 1.2.1 (child of 1.2) and task 1.3 (sibling of 1.2)

  2.  Not able to set task relationship between task 1.4.1 (child of 1.4) and task 1.5.1 (child of 1.5) 


Can you please help me with this




3 Replies

KR Karthikeyan Raja Syncfusion Team December 4, 2020 07:51 AM UTC

Hi Jignesh,

Thanks for contacting Syncfusion support.  
We have analyzed your query. We can connect the relationship between the tasks which are under different parents by mapping the dependency field in the datasource. Please find the below code snippet,  
[app.component.html] 
<ejs-gantt id="ganttDefault" height="450px" [dataSource]="data" 
//…… 
</ejs-gantt> 
 
[app.componenet.ts] 
//…… 
this.data = [ 
//…… 
   { 
            TaskID: 3, 
            TaskName: "Child Task 1.2", 
            StartDate: new Date("04/02/2019"), 
            Duration: 3, 
            subtasks: [ 
              { 
                TaskID: 4, 
                TaskName: "Sub Child Task 1.2.1", 
                StartDate: new Date("04/02/2019"), 
                Duration: 2, 
                Progress: 30 
              }, 
              { 
                TaskID: 5, 
                TaskName: "Sub Child Task 1.2.2", 
                StartDate: new Date("04/02/2019"), 
                Duration: 0 
              } 
            ] 
          }, 
          { 
            TaskID: 6, 
            TaskName: "Child Task 1.3", 
            StartDate: new Date("04/04/2019"), 
            Duration: 4, 
            Progress: 30, 
            Predecessor: "4FS" //Adding relation between task 1.2.1 (child of 1.2) and task 1.3 (sibling of 1.2)  
          }, 
          { 
            TaskID: 7, 
            TaskName: "Child Task 1.4", 
            StartDate: new Date("04/04/2019"), 
            Duration: 4, 
            Progress: 30, 
            subtasks: [ 
              { 
                TaskID: 8, 
                TaskName: "Sub Child Task 1.4.1", 
                StartDate: new Date("04/04/2019"), 
                Duration: 4, 
                Predecessor: "10SS" //Adding relation between task 1.4.1 (child of 1.4) and task 1.5.1 (child of 1.5)  
              } 
            ] 
          }, 
          { 
            TaskID: 9, 
            TaskName: "Child Task 1.5", 
            StartDate: new Date("04/06/2019"), 
            Duration: 4, 
            Progress: 30, 
            subtasks: [ 
              { 
                TaskID: 10, 
                TaskName: "Sub Child Task 1.5.1", 
                StartDate: new Date("04/06/2019"), 
                Duration: 4 
              } 
            ] 
          } 
        ] 
      } 
    ]; 
this.taskSettings = { 
      //…… 
      dependency: "Predecessor" 
}; 
 
 
 
 
Please refer the below screenshot,
 
 
We have also prepared a sample for your reference. Please find the sample from below link,
Sample - https://stackblitz.com/edit/angular-4wxvwv?file=app.component.ts
 
 
Please get back to us, if you need any further assistance. 
 
Regards,
Karthikeyan Raja
 



JI Jignesh December 4, 2020 10:45 AM UTC

Thank you for quick response.

I'm able to resolve second point from solution. But there is still issue with the first point.

1) Not able to set task relationship between task 1.2.1 (child of 1.2) and task 1.3 (sibling of 1.2 & parent of 1.3.1)

Image of Schedule created from Microsoft Project.
  


GM Gopinath Muniraj Syncfusion Team December 7, 2020 05:32 AM UTC

Hi Jignesh, 
We have analyzed your query. We suspect that you are trying to connect the predecessor line for a parent task. 
We can set relations between the child tasks only. Currently we are not having the support for connecting relation for a parent task. We have logged a feature report for this. The status can be tracked through the below feedback link. 
As we have already lined up with some major features, we could not start this feature immediately. We will implement this support and include in any our upcoming releases.   
Please cast your vote to make it count. We will prioritize the features for every release based on demands. 
Please let us know if you need any further assistance on this. 
Thanks, 
Gopinath M 


Loader.
Up arrow icon