I am wondering there is a way to create sub-tasks automatically when issue created.
For example, I create a custom Standard Issue Type, XXX, and Sub-tasks Issue Type YYY
I found an easy solution using the add-on Script Runner - http://isolasoftware.it/2014/01/08/create-an-issue-in-jira-with-predefined-sub-tasks/.
You don't have to write any code but just setup the Post Function "Create a sub-task" in the Workflow editor.