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

This widget could not be displayed.

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.

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

160 views 2 0
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