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 I'm writing an automation program and I want to calculate the sum of a numeric field in a question. For example, I have a question field as the total value of the amount, each time a new question amount number field is created, this new amount value can be added to the total amount value, and the total amount number field is updated. How should I do it?
Hi @jack and welcome to the community,
You have to have two separate numeric custom fields for that matter. One will be the Total and one will be that of the individual question. Each new number on the individual question will be a part of the Total.
To get this sum you can use a Jira Automation rule and smart values. Your rule should look something like the following:
Of course feel free to change the trigger and the lookupissue JQL to match your needs. The last component is the log of the sum.
Hi Alex thanks for your reply.
My jira version is data center version There is no Then:{{lookupIssues}} Can I still use those conditions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ohh crap. I missed that little piece of information you provided..
Unfortunately lookupissues is not available on server/DC (https://jira.atlassian.com/browse/JIRAAUTOSERVER-53)
Do you have any 3rd party app like scriptrunner? The latter has a functionality called scripted fields.
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.
Thanks Alex.
There is a scriptrunner plug-in, but I don't know how to write the code content. Is there a detailed tutorial?
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.