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.
Good Morning,
I'm quite newbie to jira but spend two weeks already on this task without success - Im trying to create the automation which will be counting dynamically the following fields:
in the following way - PM is adding Implementation Value and testing value basis, then during the process if tester found mistakes he can add value to the "Tester's value by mistakes" field and if he is updating value there it should substract that value from field "Ticket Implmenetation Value" and show the sum of all three fields in FINAL TICKET VALUE
The main issue that if after the first change - we want to adjust the tester's value by mistake field it substracts again the same value from the ticket implementation value while we want it to adjust difference only with the previous value. Also if we want to correct/remove value from tester's value by mistake field to make sure its added back to the ticket implementation value field and calculate properly Final Value.
Just to sum up the requirements of the automation:
- If value to the "Tester's Value by mistakes" added first time - it should substract from field "Ticket Implementation Value"
- If the value in field "Tester's value by mistakes" corrected to the lower amount then it was first time - it should add the difference to the field "Ticket Implementation Value"
- If the value in field "Tester's value by mistakes" corrected to the higher amount then it was first time - it should substract the difference from the field "Ticket Implementation Value".
-All the time field final amount should show the same sum of all three values.
Can someone please help with this? Maybe there any kind of workaround?
Thank you in advance.
Hi Taras - Welcome to the Atlassian Community!
Can you share the currently rule that you have? Also with details showing how you are calculating the fields with automation. Then we can give advice from there.
Thank you so much for answer!
Currently we have two rules (which are basically wrong as they aren't proprly calculating it):
1st: called "Tester's mistakes substraction automation" making calculation as following - if there is any change to "Tester's value by Mistakes (PLN)" field then make the following calculation: Ticket Implementation Value (PLN) equals {{#=}}{{issue.Ticket Implementation Value (PLN)}} - {{issue.Tester's Value by mistakes (PLN)}} {{/}}
We want to update the field to Ticket implementation value to decrease be value provided in tester's value.
2nd: called "FINAL TICKET VALUE CALCULATION" and triggers if there is any change to the fields: "Tester's value by mistakes (PLN)"; "Ticket Testing Value Basis (PLN)"; "Ticket Implementation Value (PLN)" then to run the follwing calculation: FINAL TICKET VALUE (PLN) equals {{#=}}{{issue.Ticket Implementation Value (PLN)}} + {{issue.Tester's value by mistakes (PLN)}} + {{issue.Ticket Testing Value Basis (PLN)}} {{/}}
To sum up all these fields.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the information. But can you share actual screenshots of the rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey John,
Sure if it will help - here are he two rules I've provided details previosuly:
1:
2:
Formulas pasted in my previous comment. If you need anything else - let me know.
Thank you in advance :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And the rule is firing but not updating the field correctly? Or what is happening?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've described in the question itself what is wrong. In my opinion the formulas are wrong or maybe we will need to divide into several, they calculate properly first time. I need the suggestion here of how I can or maybe can't create needed functionality.
Copying from the description:
"
The main issue that if after the first change - we want to adjust the tester's value by mistake field it substracts again the same value from the ticket implementation value while we want it to adjust difference only with the previous value. Also if we want to correct/remove value from tester's value by mistake field to make sure its added back to the ticket implementation value field and calculate properly Final Value.
Just to sum up the requirements of the automation:
- If value to the "Tester's Value by mistakes" added first time - it should substract from field "Ticket Implementation Value"
- If the value in field "Tester's value by mistakes" corrected to the lower amount then it was first time - it should add the difference to the field "Ticket Implementation Value"
- If the value in field "Tester's value by mistakes" corrected to the higher amount then it was first time - it should substract the difference from the field "Ticket Implementation Value".
-All the time field final amount should show the same sum of all three values.
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried replicating the example and I think I've got to the same place as @Taras Korobko.
I think what's needed is the ability to access both the previous value of "Tester's ..." and the changed value, but I haven't been able to figure out the syntax for that (if it's even possible). Anybody? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Taras Korobko with some help from Atlassian support, I arrived at the following two rules:
The important parts are setting the values of the fields:
Rule 1: Ticket Implementation Value (PLN):
{{#=}} {{Ticket Implementation Value (PLN)}} + {{fieldChange.fromString}} - {{fieldChange.toString}} {{/}}
Rule 2: FINAL TICKET VALUE (PLN):
{{#=}} {{issue.Ticket Implementation Value (PLN)}} + {{Ticket Testing Value Basis (PLN)}} + {{Tester's value by Mistakes (PLN)}} {{/}}
| The key point is that {{fieldChange.fromString}} and {{fieldChange.toString}} refer to the
| field you're triggering off.
HTH,
Kel
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.
If I understand correctly that:
Then I would write three rules:
Or is there more processing that needs to happen?
HTH,
Kel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kelly,
Ticket Implementation value can be changed by increase or decrease of Tester's value by Mistake field.
So generally as I wrote above - if PM is adding Implementation Value and testing value basis, then during the process if tester found mistakes he can add value to the "Tester's value by mistakes" field and if he is updating value there - it should substract that value from field "Ticket Implmenetation Value" and show the sum of all three fields in FINAL TICKET VALUE
Thanks for asking, below I will provide the current rules as well:
Currently we have two rules:
1st: called "Tester's mistakes substraction automation" making calculation as following - if there is any change to "Tester's value by Mistakes (PLN)" field then make the following calculation: Ticket Implementation Value (PLN) equals {{#=}}{{issue.Ticket Implementation Value (PLN)}} - {{issue.Tester's Value by mistakes (PLN)}} {{/}}
We want to update the field to Ticket implementation value to decrease be value provided in tester's value.
2nd: called "FINAL TICKET VALUE CALCULATION" and triggers if there is any change to the fields: "Tester's value by mistakes (PLN)"; "Ticket Testing Value Basis (PLN)"; "Ticket Implementation Value (PLN)" then to run the follwing calculation: FINAL TICKET VALUE (PLN) equals {{#=}}{{issue.Ticket Implementation Value (PLN)}} + {{issue.Tester's value by mistakes (PLN)}} + {{issue.Ticket Testing Value Basis (PLN)}} {{/}}
To sum up all these fields.
Thank you.
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.