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")
}
Hi Sasa,
A quick fix would be to add a validator to the transition to prevent the user from moving the card if the Test 1 field is empty.
Hi John,
Thank you, but no, because there is no transition if you just Edit. For example if you Edit (which will allow you to not update that Field), then tomorrow I came and try to move to another Status, ... It's not good.
Simple thing would be to Just make it Required, but then Create screen complains (see above, Field is not present on Create)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.