We have a requirement based on 4 Single select choice custom fields like A, B, C and D.
When we select A among some values, then B, C and D should be updated as "Not Applicable". I did some coding but when select drop down list it shows list of values in red color.
Can you please help with this.
Hi @Vijay dumpala ,
you can't do that using builtin feature. You could use a behaviour provided by Script Runner app (https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?tab=overview&hosting=datacenter)
Fabio
Hi Fabio,
I know this, i used behaviour only, but still get the error.
Do you have any example scripts.
Thanks,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Vijay dumpala ,
please put the following code to FieldA in your behaviour :
def fieldA = getFieldByName("Field A Name")
def fieldB = getFieldByName("Field B Name")
def fieldC = getFieldByName("Field C Name")
def fieldD = getFieldByName("Field D Name")
String fieldAValue = fieldA.getValue();
if("VALUE A".equalsIgnoreCase(fieldAValue)){
fieldB.setFormValue("Not Applicable");
fieldB.setReadOnly(true);
} else {
fieldB.setFormValue("None");
fieldB.setReadOnly(false);
fieldC.setFormValue("None");
fieldC.setReadOnly(false);
fieldD.setFormValue("None");
fieldD.setReadOnly(false);
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.