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''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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

812 views 3 9
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