Hi Team ,
I am trying to achieve this behaviour using script runner on epic link field to populate other fields based on the value selected in epic link , but somehow it isn't getting reflected . This same behaviour is working on Epic Name fine.
I have attached a sample code for the same:
Code :
def textField = getFieldByName("Epic Link")
def selectField = getFieldByName("XYZ")
def selectField2 = getFieldByName("ABC")
def selectField3 = getFieldByName("MNO")
def textFieldValue = textField.getValue().toString()
if(textFieldValue.equalsIgnoreCase("Non-Portfolio")) {
selectField.setFormValue("Non-Portfolio")
selectField2.setFormValue("Non-Portfolio")
selectField3.setFormValue("Non-Portfolio")
}
else if(textFieldValue == "") {
selectField.setFormValue(null)
selectField2.setFormValue(null)
selectField3.setFormValue(null)
}