How to calculate Square Root of a field?

Michel Marcoux December 1, 2016

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

1 vote
Answer accepted
Michel Marcoux December 7, 2016

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 F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2016

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

0 votes
Mahesh S
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2016

Please share the formula you have used.

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 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).

Michel Marcoux December 1, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events