Use case: Tasks in Agility are part of Stories (Stories > Tasks). Whereas, Jira has a separate asset called Tasks that also supports Subtasks (Tasks > Subtasks). You want the Agility Stories > Tasks synced with Jira Tasks > Subtasks.
Step 1: Create a mapping between the Agility Story and Jira Tasks assets to sync Agility Stories with Jira Tasks.
Step2: Create another mapping between Agility Tasks and Jira Subtasks to sync Agility Tasks with Jira Subtasks.