In JIRA Advanced Roadmap, create a shared team.
Use that 'Team' field in Story & Sub-Task screens.
If team is selected in story then same value should reflect in sub-tasks. But, same is not visible in sub-task. However when search the sub-task in issue search then that shows the value.
How to get displayed Team field value in sub-task by default configurations.
Using any automation to pick parent value in sub-task is not required.