You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Behaviours
Script Runner Behaviours / Server-side Script
def MultiLevelField = getFieldById(getFieldChanged())
def MultiLevelField2 = getFieldById("customfield_10146")
MultiLevelField.setHelpText("val: " + field.getValue()) //See the selected value's id
if (MultiLevelField.getValue() == "12") { //MultiLevelField value id
MultiLevelField2.setHidden(true)
MultiLevelField2.setRequired(false)
MultiLevelField2.setFormValue(false) -> cannot be use
} else {
MultiLevelField2.setHidden(false)
MultiLevelField2.setRequired(true)
}
Jira Automation