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

Feature request: Gantt chart task with multiple dependencies #552

Closed
wigy-opensource-developer opened this issue Jul 13, 2017 · 11 comments · Fixed by #1101
Closed

Feature request: Gantt chart task with multiple dependencies #552

wigy-opensource-developer opened this issue Jul 13, 2017 · 11 comments · Fixed by #1101
Labels
Graph: Gantt Status: Approved Is ready to be worked on Type: Enhancement New feature or request

Comments

@wigy-opensource-developer

There are cases in a project when multiple tasks has to be ready (apple and banana) in order to start with a given task (cherry).

gantt
  apple :a, 2017-07-20, 1w
  banana :crit, b, 2017-07-23, 1d
  cherry :active, c, after b, after a, 1d
Loading

It would be intuitive if I could just express these dependencies by adding multiple after properties to the task.

Is there a way I can workaround this missing feature at the moment? If either start time or duration changes on apple and banana, I need to remember to update cherry to depend on the one with the latest end time.

@DougHughes
Copy link

totally, drawing a line from the end of task to the beginning of a dependent task when the start of the dependent task doesn't line up (because it has other dependencies) would also be useful. This is particularly important when the dependent task is in a different section (different parallel project). Having a line from the end of the task in Proj1 to the beginning of the task in Proj2 when there's a gap, would be illustrative. (dotted, whatever)

@CraigDamlo
Copy link

This may be a second feature request, but to build on the apple, banana, cherry example, sometimes I need a delay, like start apple 1 week after banana; both beginning and ending.

@fbartho
Copy link

fbartho commented May 23, 2019

I too also want this feature!

Additionally, sometimes it might be convenient to have a before taskId statement.

@fbartho
Copy link

fbartho commented May 23, 2019

I think this is the interesting code for this feature: https://github.com/knsv/mermaid/blob/a4992963b3873ec7a566ba91b92596d2a360e3b9/src/diagrams/gantt/ganttDb.js#L66-L76

Are there any more things to look at?

@peetervois
Copy link

I also need this feature. And I also found the code by fbartho. It seems to me that a loop would be needed to look through every afterStatement[x] and return the task.endTime that is the latest. Would it work?

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still interested in it, and it is still relevant, you can comment or remove the label to revive it.

@github-actions github-actions bot added the Type: New Shape Request for new shape label Sep 24, 2019
@wigy-opensource-developer
Copy link
Author

ping for you, @github-actions

@IOrlandoni IOrlandoni added Graph: Gantt Status: Pending Is not to be executed as it currently is Type: Enhancement New feature or request labels Sep 25, 2019
@stale
Copy link

stale bot commented Oct 9, 2019

This issue has been been automatically closed due to a lack of activity. This is done to maintain a clean list of issues that the community is interested in developing.

@stale stale bot closed this as completed Oct 9, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2019
@IOrlandoni IOrlandoni reopened this Oct 9, 2019
@stale stale bot removed the Type: New Shape Request for new shape label Oct 9, 2019
@github-actions github-actions bot unlocked this conversation Oct 9, 2019
@peetervois
Copy link

Thank you for keeping it open. I am watching this issue. I am ready to set up premium for those who decides to solve it and make new release for https://www.dokuwiki.org/plugin:flowcharts .

@peetervois
Copy link

The change is going to be published soon. Stay tuned.

@IOrlandoni IOrlandoni added Status: Approved Is ready to be worked on and removed Status: Pending Is not to be executed as it currently is labels Nov 28, 2019
@IOrlandoni
Copy link
Member

@itprdev If you'd like, leave a comment here so I can assign the issue to you so nobody else works on it and when we close it you'll permanently show up as the user that fixed it!

knsv added a commit that referenced this issue Dec 11, 2019
knsv added a commit that referenced this issue Dec 11, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Graph: Gantt Status: Approved Is ready to be worked on Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants