Hi.
I have two drop down fields:
- Environment (Custom Field 13821)
- Severity (Custom Field 10120)
I would like to create behavior as follows:
If user selects Dev or UAT, Sev 1 is hidden is the drop down. In other words Sev 1 is only available for Prod.
I have managed to hide the whole field Severity, but not sure how to hide just one option from that field
def environmentField = getFieldById(getFieldChanged())
def selectedOption = environmentField.getValue() as String
def cfSeverity = getFieldById("customfield_10120")
if (selectedOption == "Production") {
cfSeverity.setHidden(true)
}
if (selectedOption != "Production") {
cfSeverity.setHidden(false)
}
Can you help?
Thank you.