What do I want?
To transition Sub-tasks according to the Status changes of their parents, incl setting Resolution according to the parent's Resolution when the parent Issue is set to Done.
Jira automation setup
- Trigger = Issue transitioned
- If - JQL: issuetype in (story, bug), and
- If - Linked Issues present (types: is tested by), and
- If - Sub-tasks present
Branch 1
- For - Sub-tasks
- If - JQL: status = Done
- Then - Transition Issue to: Copy from trigger Issue, and
- Then - Edit Issue Field: Resolution (Copy from trigger Issue)
Branch 2
- For - Sub-tasks
- If - JQL: status != Done
- Then - Transition Issue to: Copy from trigger Issue, and

Problem
Status transition works fine, the Sub-task always transitions to the same Status as the parent, but the Sub-task's Resolution is never set when the parent is set to Done (regardless of what Resolution is chosen).
Jira automation doesn't register it as an error so I guess it could be me that messed up the logic.

Notes
- Manually, Resolution is set on a Resolution Screen that appears when an Issue is set to Status Done.
- A Post-function clears the Resolution Field whenever an Issue is moved from Status Done.