This relates to:
https://community.atlassian.com/t5/Jira-Core-questions/Script-Runner-Transition-parent-issue-based-on-subtask-status/qaq-p/63722
and
https://community.atlassian.com/t5/Jira-questions/Script-Runner-Transition-parent-issue-based-on-subtask-status/qaq-p/260608
I have the same approval process as the original poster, and followed the set up recommended there. Then I added the clean code from the second thread. However, the transition do not happen when the subtask status changes.