Hello!
I am creating an automation that sums up all the work hours logged in all items under an initiative and add the number to a custom field in Jira Product Discovery idea.
My work-items tree looks like this:
Initiatives
Epics
Stories
Sub-tasks.
So I created an automation that runs in a branch on all the children of an initiative and sums up the work hours - this works good.

So inside a branch I aggregate the hours to the totalWorklogHours variable, but how do I add the value of the variable to the destination issue's custom field?
Normaly you would branch to destination issue, but you cannot branch from inside a branch.
Any creative ideas?
Thank you.