I have an org document with the following structure
* Tasks
** First category
- [X] Task
** Second Category
- [ ] Task
And I'd like to get statistics for both the overall completion and each subheading. If my tasks were TODO headings, I could get what I wanted by giving each heading a statistics cookie and setting the recursive property on the cookie, (or by setting org-hierarchical-todo-statistics
to nil
). That works as follows, and gives the expected result after updating all cookies:
* Headings and TODOs [1/2]
:PROPERTIES:
:COOKIE_DATA: todo recursive
:END:
** First category [1/1]
*** DONE Task 1
** Second Category [0/1]
*** TODO Task
If I try to do the same with the checkboxes, either by setting the recursive property on the cookie, or by looking at the variable org-checkbox-hierarchical-statistics
, I get the following result
* Checkboxes [0/0]
:PROPERTIES:
:COOKIE_DATA: checkbox recursive
:END:
** First category [1/2]
- [X] Task
** Second Category [0/1]
- [ ] Task
Where the first line says * Checkboxes [0/0]
instead of the expected * Checkboxes [1/2]
I therefore have two questions:
Is this the intended behaviour, so that I'm misunderstanding how checkboxes and subheadings are supposed to interact? Does the "hierarchy" of hierarchical checkboxes only work in a single nested list and not across subheadings?
How do I get the behaviour I do want? As a last resort I know I can just convert my document entirely to subheadings, but I'd rather not have to do that