Groovy script operations - How to multiply values in field

Hi,

I want to multiply the values in two customfields and display the result in another customfield.

ex: I have a field called 'Value1' and another field called 'Value2'. Both are drop down with numbers from 1 to 5. When I will create an issue, let's say I will select '3' in field Value1 and '4' in field Value2, I want the script to multiply those two values and display the result (12) in another field called 'Result'.

how will I do that?

thnx in advance!

1 answer

1 vote
Henning Tietgens Community Champion Oct 15, 2012

I would suggest, you create a scripted field which reads the values from the other two fields and returns the result. See https://studio.plugins.atlassian.com/wiki/display/GRV/Scripted+Fields

Henning

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

125 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you