Automatic update of a new field based on values in another field

Hi, we are trying to implement a requirement where if a field gets updated with the value automatically based on existing data in two other fields. For example, lets say there are 3 fields Field A, B, and C. We would like to see the following behaviour if there is a particular value in Field A and Field B. Field C needs to get updated (based on some custom logic that we will define which may involve calculations)

If:

Field A: Plan JIRA

Field B: 5000

Then:

Field C: 2000

Any idea how we can do this in JIRA Cloud?

2 answers

0 votes

As far as I know, JIRA Cloud does not allow customization. But, you can do this if you host a JIRA standalone instance. You can refer the documentation - https://confluence.atlassian.com/display/JIRAKB/How+to+display+a+Field+based+on+another+Field%27s+selection for more informaiton. Or check the other post - https://answers.atlassian.com/questions/39876/jira-set-a-field-based-on-another-field

Hi Saket!

I'd suggest using the Script Runner add-on, which has a functionality named Scripted Fields. With these, you can create two fields that would take its value based on what's set on another field.

There is extensive documentation on the add-on, the specifics for Scripted Fields can be found here. There are also some good examples of code that you may find useful when writing your own script.

By the way, Script Runner uses Groovy as its programming language, so it's pretty straight-forward.

I'll tag your question with the label monitored by the add-on developer and also lots of other users from the community, so you may find lots of additional help on doing this. wink

Cheers!

Joao 

It is not available for Cloud, unfortunately. :(

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,156 views 13 19
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