JIRA Misc Custom Fields Formatting a Sum

Let me start of by saying I am not a JAVA developer.

Work is requiring me to try and find a solution to adding up 5 custom fields. 

I am using the JIRA Misc Custom Field add-on : https://innovalog.atlassian.net/wiki/display/JMCF/JIRA+Misc+Custom+Fields

Now I am able to bring up with a number for all 5 fields but it is not adding them in the way I need them.

Example.

Field no. 1 is = 5

Field no. 2 = 6

JMCF field = 11

Instead the field is just combing fields for it looks like this;

JMCF = 56

Here is my Formula so far:

<!-- @@Formula:(issue.get("customfield_16405") != null ? issue.get("customfield_16405") : 0) + (issue.get("customfield_16406") != null ? issue.get("customfield_16406") : 0) + (issue.get("customfield_16407") != null ? issue.get("customfield_16407") : 0) + (issue.get("customfield_16408") != null ? issue.get("customfield_16408") : 0) + (issue.get("customfield_16409") != null ? issue.get("customfield_16409") : 0) -->
<!-- @@Format: numberTool.format(value) -->

 

I am having a problem on the @@Format: numberTool.format(value). 

How can I go about adding up these 5 fields?

 

Cheers

0 answers

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...

111 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