I'm working on a jira automation flow. every time a value is added to the client field for a ticket, i want the 'Total revenue" number field to update on the ticket adding that client's revenue amount. The revenue amount per client is stored in a lookup table within the rule. I can get my logs to return the list of clients on the ticket, and their related revenue numbers. i can also get my total revenue number to update within the branch, but i can't get that to sum and update the jira field outside of the branch at the end. here's what I have that is the closest I've got:
When: Value changes for Client
Group 1:
Then:
And:
(Branch)
Outside of Branch:
I've also tried creating total revenue in the branch as {{totalRevenue.asNumber.plus(clientRevenue.asNumber)}}
I've got logs at each of these steps that i didn't include for readability, but essentially they show: