How to calculate Square Root of a field?

Hi,

Is there a way to calculate the square root of a field (I have a select list with different numeric values) and display the result in another field?


thanks!

3 answers

1 accepted

Actually I found a way (Calculated Number Field):

 

<!-- @@Formula:
if (issue.get("customfield_11733")==null) return null;
return Math.sqrt(issue.get("customfield_11733"));
-->

 

 

Steven Behnke Community Champion Dec 07, 2016

You'll find that you have most basic Java math functions. Misc Custom Fields uses Beanshell scripting language itself.

0 vote
Steven Behnke Community Champion Dec 01, 2016

This is not avaliable out of the box.

A plugin like Misc Calculated Fields or Scriptrunner can accomplish this, otherwise it is usually accomplished by writing a Custom Field add-on (for Server) or Issue Field integration (for Cloud).

hmmm yeah i already have Misc Calculated Fields, i tried with a calculated field, but i can't figure out which formula is needed. 

0 vote
Mahesh S Community Champion Dec 01, 2016

Please share the formula you have used.

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 9 hours ago 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...

34 views 0 3
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