Hello All,
I have hided custom fields on selection of other custom field value section with the below script in behavior.
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
def myrequestclassField = getFieldById(getFieldChanged())
def valueField = getFieldByName("Branding")
String myrequestclassValue = myrequestclassField.getValue()
if (myrequestclassValue == "Folder Structure and File Move Request") {
valueField.setHidden(true)
} else {
valueField.setHidden(false)
}
But this is not working for Priority field(system field).
can any one please help.
Thanks,
Mani