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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

362 views 0 6
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