Summary
When all the sub-tasks are completed, you would like to automatically move the parent issue to be in done status only if it's not in done.
Steps
The following steps demonstrate how to configure Create on Transition, using the transition feature along with JQL query and regex inspection: