Calculated number field not visible Edited

Hi all,

Banging my head against the wall here, any help would be greatly appreciated!

Re: add-on

I wanted a calculated number field to display a mean average of other number fields but no matter what I try the field does not display.I thought it was an issue with my code or syntax so in a effort to work out what I was doing wrong I copied and pasted the following bit of example code from the help pages, which is supposed to find the sum of 2 fields:

<!-- @@Formula: (issue.get("customfield_10114") != null ? issue.get("customfield_10114") : 0) + (issue.get("customfield_10150") != null ? issue.get("customfield_10150") : 0) -->

I changed the field ID numbers to ID's that are on the same screen as the issue I am testing against (both fields are set to a single digit integer in the issue I'm testing with). I expected the field to appear with the sum and then the plan was to keep making small changes until I found out what I was doing to break the code. However, even using the example code the field does not appear.

I thought maybe there was an issue with the add-on configuration itself but after speaking to my JIRA administrator it turns out there is no configuration to worry about, it is either installed and enabled or it isn't. The fact that I can create a calculated number field at all proves that it is both installed and enabled.

I made use of the "Where is my field" tool which confirms that "The '<fieldname>' field should be present on the form you are viewing".

So, given that my code is correct, the add-on is installed successfully and the field's visibility is properly configured, does anyone have any idea as to what is stopping the field from appearing?

Help me Atlassian Community, you're my only hope.

3 answers

0 votes
Joseph Pitt Community Champion Jul 12, 2017

Should it be populated in the issue you're viewing? I don't know the behaviour of calculated fields on the edit screen, but empty fields don't show up in the view details page. 

Hi Joe,

Yes it should, both the custom fields referenced in the formula have a value so the calculated field has all the numbers it needs to return a sum.

Okay I feel very silly now. I assumed the field would show up in the edit view which it doesn't, however it does show up in the issue details.

Joseph Pitt Community Champion Jul 13, 2017

It makes sense it wouldn't show up in the edit screen because you shouldn't be editing it. 


I get the same problem, I understand what you write, but where the field is suppose to appears  ? I put numbers in my other field.

I don't see the result about this field. It's is my formula ? She is not ok you think ? I followed the same principle as Tommy for the formula.

Thanks to help me 

 I found my mistake ! :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


254 views 0 6
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