Hello,
ECM:
* Top-Heading with process indicator [/]
** TODO Here I invoke org-todo to DONE
:PROPERTIES:
:TRIGGER: 2021-12-03-target(TODO)
:END:
** This should be changed to TODO
:PROPERTIES:
:ID: 2021-12-03-target
:END:
If you run org-todo on the "Here I invoke org-todo to DONE" headline the headline will change to DONE, but the trigger will not update the "This should be changed to TODO" headline. There is further discussion in another thread where the user reported the issue [1].
The issue is Line 12534 in org.el:
(when org-provide-todo-statistics
(org-update-parent-todo-statistics))
which traverses the tree and updates the todo progress statistics. If the statistic is [/], as in the ECM above, or [%] it will add 1 or more characters which is enough to push the :position property up to the line above. I wasn't sure how to deal with this as it seems `org-update-parent-todo-statistics' could update more than one parent heading and the number of additional characters isn't clear without some feedback from `org-update-parent-todo-statistics'.
Cheers,
Adrian