Hello everyone,
hopefully someone here can help me out. Here is what i am trying to archieve:
We got the issuetype "Initiative" created in our instance which is set above Epic in the Issue type hierarchy, meaning Epic is a child of Initiative.
The workflow of the Initiative is looking the following:

The Epics have a simple workflow going from "Open" to "In Progress" and finally "Closed" and are all named in the summary beginning with M1, M2, M3, M4, M5.
Now when one Epic is being transitioned to "Closed" the parent Initiative should display the "highest" Epic being closed as the status, but should not be able to be transitioned lower.
For example if the Epic M4 is being closed, then the Initiative should show M4, if afterwards M2 is being closed, the Initiative should stay at M4 because it is higher than M2.
Here is what i built and tested with several test issues and the audit log will show that the issue passes the if/else successfully, but won't do anything further as it would just stop when trying to go into the branch. (This goes all the way on to M5)

And the audit log where you can see it stops at different if / else conditions as i tried with M3 and M5 linked to the Initiative.
Any help or different solutions are appreciated.
Thanks!