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

Task dependency does not work unless tasks are sorted in editor #106

Open
shomodj opened this issue Feb 16, 2023 · 1 comment
Open

Task dependency does not work unless tasks are sorted in editor #106

shomodj opened this issue Feb 16, 2023 · 1 comment

Comments

@shomodj
Copy link

shomodj commented Feb 16, 2023

First, thank you! Its almost perfect.

I just have problem with task dependencies

Example:

after !task1 2 weeks: task 2
now - 2 weeks: task 1 !task1

It's really hard to create a complex project with dependencies if you have to order them in editor, I order sections, groups and tasks logically and this breaks it

Thank you

@kochrt
Copy link
Member

kochrt commented Feb 17, 2023

Yeah I get that. Unfortunately how it works right now is the parser has to have seen the event id that is being referred to, because if it has seen it, then it is defined.

Otherwise the parser would, after parsing the document, have to go back and create a graph of linked event ids. Probably doable, but you could potentially end up in cycles that don't make sense.

Like you could create something like this:

after !task1 1 week: !task0
after !task0 1 week: !task2
after !task2 1 week: !task1

but this group of events has no actual start or end date, they all just refer to each other.

For your use case I normally recommend ordering by dependencies when writing, then sorting in the timeline view, but you're right that this doesn't account for dependencies across groups 😞 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants