Dependents vs Dependencies — which to use?

Can anyone explain the difference between dependents and dependencies?

I’d like to use the API to set specific subtasks as being dependent (waiting on) a different subtask to be completed.

E.g.,

  • Subtask A (ready to be worked on)
  • Subtask B (wait until Subtask A is done)
  • Subtask C (wait until Subtask A is done)

Thus, Subtask B and Subtask C are dependent on Subtask A.

Which endpoint do I use?

Sounds like I could use either, it just depends on how I want to code it?

Exactly! You could use the “Add dependency” endpoint on Subtask B and Subtask C to add a dependency of Subtask A on each of those two tasks; or you could use the “Add dependent” endpoint on Subtask A to add Subtask B and Subtask C as dependents. Either way the result will be the same.