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
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabio, Can you look into this https://answers.atlassian.com/questions/32974062/copying-custom-field-value-to-another-custom-field-depending-on-the-third-custom-field-value Please help me in here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are looking for below requirement and i started searching around but this will not be possible with inbuilt Jira functionalities like cascading and all..
I am thinking of using the script we can do this but for maintaining the script and adding a new option into it will be like hell...
And each field contains more than 100+ options...any suggestions will be helpful for us.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.