It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

1 vote
Answer 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 Leader Dec 07, 2016

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

0 votes
Steven Behnke Community Leader 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. 

Please share the formula you have used.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

968 views 7 0
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you