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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It makes sense it wouldn't show up in the edit screen because you shouldn't be editing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.