Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Calculated number field not visible

Tommy G July 12, 2017 edited

Hi all,

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

Re: add-on https://marketplace.atlassian.com/plugins/com.innovalog.jmcf.jira-misc-custom-fields/server/overview

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
Marie-Josee Parent October 1, 2018

Hi 

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 

Marie-Josee Parent October 3, 2018

 I found my mistake ! :)

0 votes
Tommy G July 13, 2017

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.

Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2017

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

0 votes
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 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. 

Tommy G July 13, 2017

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events