To create a hierarchy in Advanced Planning for Jira Cloud, the only mapping you need to configure is the Parent mapping
This will take care of all levels, from Initiatives and Epics to Sub-tasks.