org-mode 中的任务依赖

Task Dependency in org-mode

我正在尝试为以下问题设置 org-capture 或 org 文件:

任务A是主要任务。它依赖于次要任务 B 和任务 C。 现在在组织议程视图中,我应该能够看到任务 B 和任务 C。
当他们完成后,我应该能够在议程中看到任务 A。如果可能的话,我想概括一下,例如任务 B 可以依赖于任务 D 和任务 E。

我怎样才能做到这一点?
谢谢。

看看org-enforce-todo-dependencies。这是帮助字符串:

org-enforce-todo-dependencies is a variable defined in ‘org.el’.
Its value is t
Original value was nil

Documentation:
Non-nil means undone TODO entries will block switching the parent to DONE.
Also, if a parent has an :ORDERED: property, switching an entry to DONE will
be blocked if any prior sibling is not yet done.
Finally, if the parent is blocked because of ordered siblings of its own,
the child will also be blocked.