Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,501
Community Members
 
Community Events
176
Community Groups

Automation, the problem of summing up the amounts

Edited

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?

1 answer

1 accepted

1 vote
Answer accepted

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:

sum numbers rule.png

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?

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.

Thanks Alex.

There is a scriptrunner plug-in, but I don't know how to write the code content. Is there a detailed tutorial?

Yes, in the link above :) 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events