Using Scriptrunner Validator (in workflow transition), I want to make sure all child issues are transitioned to 'APPROVED' status before transitioning the parent issue to 'APPROVED', otherwise the parent issue won't be allowed to transition. What is the script used in this case?