Hello,
We are using the Scriptrunner plugin via the Behaviours to show/hide fields based on the selected value on a radio button. We have noticed that this only works on the create screen and when updating the radio button field via "Edit" button on the edit screen. This is not working when we change the field value using the pencil icon. Is this the expected behaviour? Below is the added server side script on the radio button field:
import com.onresolve.jira.groovy.user.FormField
FormField fieldChangeDeliveryDatePostponed = getFieldById("customfield_10403")
FormField fieldRootCauseOfDeliveryPostponement = getFieldById("customfield_10169")
FormField fieldUpdatedReleaseDate = getFieldById("customfield_10514")
if (fieldChangeDeliveryDatePostponed.getFormValue() == "10520") { //Yes
fieldRootCauseOfDeliveryPostponement.setHidden(false)
fieldUpdatedReleaseDate.setHidden(false)
}
else {
fieldRootCauseOfDeliveryPostponement.setHidden(true)
fieldRootCauseOfDeliveryPostponement.setFormValue("-1")
fieldUpdatedReleaseDate.setHidden(true)
fieldUpdatedReleaseDate.setFormValue(null)
}