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.

2 votes
Dieter Community Champion Apr 30, 2012
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)

Dieter Community Champion Apr 30, 2012

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,300 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot