We have a JIRA Automation in Place as below.
Trigger: Epic status is changed to "Ready for Approval"
Additional IF conditions are checked.
There's a multi-select custom field called "Impacted Units".
Based on the selections to the above field x number of task are to be created and assigned to each Unit Manager.

The Tasks are getting created successfully. e.g if there are 3 "Impacted Unit" then 3 child Tasks are created. However, when we try to assign the issue, instead of setting the assignee on the created Task, the automation script sets the assignee on the "Trigger Issue".
As the "For Each" action is running in a branch, it should ideally set the Assignee on the issue created inside this branch.
Any suggestions/ ideas would be appreciated.