JIRA Misc Custom Fields Formatting a Sum

ITORDERS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2017

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

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2025

Hi @ITORDERS and welcome to the community (7 years later...),

If your question is still valid, and although Appfire bought innovalog quite a few year ago, this page might help https://innovalog.atlassian.net/wiki/spaces/JMCF/pages/141892926/Use+cases+for+custom+fields#:light_bulb_on:-Calculate-the-sum-of-two-number-field-and-round-off-the-result

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events