You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi team,
I'm trying to automate the following calculation: (field 1 x field 2) + field 2
I've set up a global automation to calculate the first part (field 1 x field 2) but I'm unable to then take that output and use it for the follow up calculation.
I've tried splitting it into a second automation rule but that hasn't worked, so I'm wondering:
1. Is there a way to run step-by-step calculations in 1 rule
2. I couldn't find any documentation around the order at which global automation rules run (i.e Rule 1 runs and then Rule 2 etc). Is this documented anywhere?
Hi @Chris F
Could you please describe your whole use case in more details? What is your entry point/when should this be done and what is the expected result? This would also make a difference on how and where to do the calculation.
Furthermore: Are the fields across different projects or should the result be processed in a different project? Why are you considering your rule to be a global rule?
Something I you could try quickly is:
- create a variable (eg. varAddition) that does the 1st calculation (the addition of field1 + field2)
- create action "log action" that returns your variable (varAddition) for testing purpose.
- create another variable (eg. varMultiplication) that takes in the value of varAddition.asNumber (you have to convert to number with .asNumber as variables are stored as string) and the does the multiplication with the value of field2
- create action "log action" that returns your 2nd variable (varMultiplication) for testing purpose.
Hope that was helpful.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
can you try using a variable?
set the variable to the field1 x field2
record the variable value using log action so we can assess
finally add the variable to the final field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.