Skip to end of banner
Go to start of banner

Script Usage

Skip to end of metadata
Go to start of metadata

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

Screenshot 2024-07-17 at 20.21.45.png

  • No labels