Need to cascade between two custom fields

Hi,

Here is my detailed requirement,

I have two custom field namely

1."RYG" with dropdown values Red, Yellow, Green.

2. "Overall Status"

Now if i select Red in "RYG" custom field Action Required value should appear in "Overall Status" custom field.

Same way if i select Yellow -> Monitor and if i select Green -> On Track values should appear.

Is there any way way/scripts to achieve this. If you any scripts please share.

JIRA version 6.3.15

 

Thanks in Advance,

Nandeesh

1 answer

1 accepted

0 vote

Hi Nandeesh,

you can use a behaviour for this purpose.Please install ScriptRunner for JIRA (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/server/overview) and setup the following behaviour  on RYG custom field :

FormField ryg = getFieldByName("RYG")
FormField overallStatus = getFieldByName("Overall Status")
def rygValue = ryg.getValue()
if(rygValue!=null){
	if(rygValue.equals("Red")){
   		overallStatus.setFormValue("Action Required")
	} else if(rygValue.equals("Yellow")) {
   		overallStatus.setFormValue("Monitor")
	} else if(rygValue.equals("Green")) {
   		overallStatus.setFormValue("On Track")
	}
}

Hope this helps,

Fabio

Hi Fabio, Kudos to you. it worked perfectly. Many thanks for your kindly help :) Thanks, Nandeesh

You're welcome :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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