markwhen icon indicating copy to clipboard operation
markwhen copied to clipboard

Task dependency does not work unless tasks are sorted in editor

Open shomodj opened this issue 2 years ago • 1 comments

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

shomodj avatar Feb 16 '23 10:02 shomodj

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 😞 .

kochrt avatar Feb 17 '23 14:02 kochrt