Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find the critical task #355

Open
studentDB opened this issue Nov 22, 2022 · 4 comments
Open

How to find the critical task #355

studentDB opened this issue Nov 22, 2022 · 4 comments
Labels
👨‍🏫 Help wanted Extra attention is needed ❓ Question Further information is requested

Comments

@studentDB
Copy link

No description provided.

@studentDB studentDB added ❓ Question Further information is requested 👨‍🏫 Help wanted Extra attention is needed labels Nov 22, 2022
@neuronetio
Copy link
Owner

neuronetio commented Nov 22, 2022

What you mean by critical task?
If the last one then you need to iterate through your tasks and choose the last one ¯\_(ツ )_/¯

function findCriticalTaskId( gstc ){
    const allTasks = gstc.api.getAllItems();
    let lastTime = 0, lastTimeTaskId = '';
    for(const taskId in allTasks){
        const currentTask = allTasks[taskId];
        if( currentTask.time.end > lastTime ){
            lastTime = currentTask.time.end;
            lastTimeTaskId = taskId;
        }
    }
    return lastTimeTaskId;
}

@studentDB
Copy link
Author

sorry ,I didn't describe it clearly,I really want to find critical path

@haitaoseven
Copy link

Hi, have you find the way of showing the critical path ? If yes, could you please tell me how ? Thanks.
I also want to show the cirital path in gantt chart, but I don't find any solution .

sorry ,I didn't describe it clearly,I really want to find critical path

@studentDB
Copy link
Author

I have implemented the display function of critical path,but not through gantt-schedule-timeline-calendar,by using Apose.Tasks, the backend calculates critical paths,and the front-end is responsible for displaying them

Hi, have you find the way of showing the critical path ? If yes, could you please tell me how ? Thanks. I also want to show the cirital path in gantt chart, but I don't find any solution .

sorry ,I didn't describe it clearly,I really want to find critical path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👨‍🏫 Help wanted Extra attention is needed ❓ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants