JIRA Misc Custom Fields

Annie Hong July 31, 2013

Hi Sir,

We'd like to use the JIRA Misc Custom Fields to implement the Calculated Number Field.

From here,

https://innovalog.atlassian.net/wiki/display/JMCF/JIRA+Misc+Custom+Fields#JIRAMiscCustomFields-calculatednumberfield

, it mentioned <!-- @@Formula:issue.get("versions").size() --> but we're not sure where we should add this syntax.

Another question, we add the Calculated Number Field but it doesn't appear when I create an issue, would someone please assist to check it which part is wrong?

Thank you.

BR,

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nic Brough -Adaptavist-
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 31, 2013

As it says in the docs, your "code" should go into the *field description* of the field. Click the cog, edit the field, you'll be offered a box for "field description"

The second part of your question is directly related to the first. A field will not appear on a screen until it has data. If you are asking where to put the code, then it's clear that you have not got any data in the field, because it can't generate data until the code is working...

I'm not actually sure that calculated fields will display on create screens though, as there might be nothing to calculate until you've got an issue to work with.

In summary, you need to

  1. Add the code to the description
  2. Start to create a test issue and see if the field is there
  3. Commit the new test issue, and go back to view it and see if the calculated field appears.
TAGS
AUG Leaders

Atlassian Community Events