Proceed with a task only when all sub-tasks are completed.
Add the Validation of sub-tasks to the desired workflow transition.
Select Resolved and Closed.
Check the following options:
Checking this option allows you to skip the issue type filter.
Checking this option allows you to skip sub-tasks with resolutions.
Condition on sub-tasks
Validation of sub-tasks