How do you create a calculated custom field?

I am trying to set up a calculated custom field in JIRA. Is this possile?

2 answers

The script runner plugin will allow you to configure that. I used it to take two fields, and concatitate them together, which dashes and made a third field. The field type was 'scripted'.

We have JIRA on demand so I don't believe I can add any plugins?

No, you cannot. I think Jo-Anne is referring to the script runner plugin which has a "scripted field" type, where you can define the calculation in a line or two of groovy. It can also be done with the behaviours plugin though, although the former is the better option.

D'oh...you're right Jamie, it it script runner. I've updated my original answer to point to the correct plugin now.

See I should never answer anything when I've only had one cup of coffee.

please check if the "velocity processed message custom field" is available for you when you create a custom field. This allows you to render a velocity template specified in the custom field default value whereever the custom field is displayed or edited. (screens and issue navigator)

this custom field is provided by the Jira Toolkit Plugin which is installed on OnDemand but i'm not sure if it's also enabled on OnDemand.

The velocity field option is powerful, but doesn't enable searching or sort in the navigator (the calculation is done on display, the results are not indexed or stored on the issue). So you need to think about what you're looking for before reaching for a particular solution. (Caveat - I don't know what's available in OnDemand, it may be that you can't do anything more than this. Yet)

agree with you, Nic. It's potentially dangerous so i'm still doubt if Atlassian enabled it. Hopefully what Renjith suggested will be available soon

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

708 views 6 13
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