How you calculate critical path ?

Our state of the art Gantt chart
Post Reply
User avatar
rahulranjan
Premium Member
Premium Member
Posts: 277
Joined: Mon Apr 29, 2019 8:43 pm

How you calculate critical path ?

Post by rahulranjan » Fri Jul 12, 2019 1:14 pm

How critical path for an parent task and child task is calculated.

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: How you calculate critical path ?

Post by pmiklashevich » Fri Jul 12, 2019 8:50 pm

The critical path is a chain of linked tasks that directly affects the project finish date. If any task on the critical path is late, the whole project is late.
Pavel Miklashevich - Core Developer

User avatar
rahulranjan
Premium Member
Premium Member
Posts: 277
Joined: Mon Apr 29, 2019 8:43 pm

Re: How you calculate critical path ?

Post by rahulranjan » Wed Jul 31, 2019 10:20 am

Hi
1. How you determine which activity is critical?
2. Have we have to pass any extra fields from backend. like totalSlack.
3. In Demo data set i can see you don't pass any extra fields.
4. But in
Columns columns : [
{ type : 'name' },
{ type : 'earlystartdate' },
{ type : 'earlyenddate' },
{ type : 'latestartdate' },
{ type : 'lateenddate' },
{ type : 'totalslack' }
You use this why . Is total slack auto calculated.

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: How you calculate critical path ?

Post by pmiklashevich » Wed Jul 31, 2019 2:15 pm

Both totalSlack and critical fields are automatically calculated.
1. How you determine which activity is critical?
A task is considered to be critical if its delaying causes the project delay. The field value is calculated based on totalSlack field value.
2. Have we have to pass any extra fields from backend. like totalSlack.
No, you shouldn't pass any extra fields from backend. totalSlack is calculated too. Total slack is amount of working time the task can be delayed without causing a delay to the project end.
3. In Demo data set i can see you don't pass any extra fields.
Yes, that's correct. In examples/_datasets/criticalpaths.json we don't have any extra fields related to slack
4. But in
Columns columns : [
{ type : 'name' },
{ type : 'earlystartdate' },
{ type : 'earlyenddate' },
{ type : 'latestartdate' },
{ type : 'lateenddate' },
{ type : 'totalslack' }
You use this why . Is total slack auto calculated.
The lines you provided from examples/criticalpaths/app.js are correct. Yes, total slack is autocalculated.
Pavel Miklashevich - Core Developer

Post Reply