I have multiple tabs for Bugs. When I tried to create a scriptrunner server side script, it works fine for all the fields in the first tab. But same kind of server side script not working for field in the second tab. I have two tabs, Reporting Fields and Second is Development Fields in Jira. I use Jira Software 8.21.0 and Scriptrunner 7.5.0.
For the dropdown field inside the reporting fields tab, below server side script is working:
def customField = getFieldById(fieldChanged)
def customFieldValue = customField.value
if(customFieldValue == "xyz"){
customField.setError("Invalid Value")
}else{
customField.clearError()
}
But same script does not work for Development Fields tab which is second tab.