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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

241 views 1 18
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