How to track subtasks in Org

Continuing from previous post ..

Turns out there is a specific way to handle subtasks in org-mode.

I used something like following - which did not work

* TODO Main task [0/3]
- [x] Subtask 1
- [ ] Subtask 2
- [ ] Subtask 3

As we can see, I expected to see [1/3] but I continue getting [0/3]

Correct way to do this is :

* TODO Main task [1/3]
  ** DONE Subtask 1
  ** TODO Subtask 2
  ** TODO Subtask 3

With the correct syntax, I don’t even need to C-c C-c to update / in the main task. As soon as any subtask chnages from TODO to DONE (or vice versa) the header automatically changes 🎉