Hello,
I have a Single choice custom field (ex "test1"). That field is not visible on Create issue, it is only visible on Edit/View. Field has some values plus None as default.
Scenario: If user Edit Issue, field Test1 must have some value from the list. None is not a option. How to do this. I manage to set up Listener code bellow, but this doesn't prevent user to choose None if value already exists.
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
if (cfValues['Test1']?.value == null ){
//Only Warning is shown but field can have None value
UserMessageUtil.warning("Some Error")
}