automatically set field value based on other field values

I want to find a way to "programmatically" set the Priority field in a Jira issue, based on the value of two other fields (they happen to be custom fields, if that makes a difference). I was originally hoping to be able to do this in a Post-Function of a Workflow Transition, but apparently I can only set a field to a specific value, not a computed one (with the built-in post-functions, at least).

I've been playing with javascript but the documentation is sporadic and I haven't been able to get it to work. (Plus, I'm still not sure that this is the recommended method of attack. The documentation warns, "adding Javascript to custom fields is a customisation and not maintained as a supported part of JIRA.")

I don't want to add another plugin, unless it is free and well-regarded by the community.

What is the best approach? (I'm running JIRA 5.1).

4 answers

1 accepted

Hi Kevin, while I was reading your question I thought 'definitely going to recommend him the Script Runner Plugin' then I read your almost last line. Anyway, I'm going to insist with that plugin because it's not only free but it is by far the best plugin I'm using, many people can say that.

This plugin has what it's called Built-in scripts, with many possibilities. It's like adding code but that it's only executed when an event it's fired. Check it out.

Hope this helps.

Well, with a 4-star rating and over 24K downloads, that definitely meets my "well-regarded" criteria! I'll give it a try. Thanks!

Hey there! Any luck with this? Looking to set the Priority field here based on two custom fields (Impact and Urgency) - basically looking to implement this ITIL priotization matrix

In the on demand version of Jira it is not possible to install plugins. Is there another solution to automatically set field value based on other field values there?

@Kevin Mote - it's been quite a while but would you happen to have the script you used in ScriptRunner?

I have the same need - update one custom field depending on the value of a different custom field.

Unfortunately, no. Sorry.

@Chris Bezile - My turn to have the same request; did you find anything (free!) about that?


Same need here. Looks like no free solution now...

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted 6 hours ago in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

23 views 1 2
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