Hello All,
How to remove None option from Multi select list custom field?
I have made multi select field as required still it shows the None option.
Any help would be appreciated!
Thanks in Advance,
Mani
Is there an alternative way to achieve this, not using cascading 2 level lists?
I have a required field, but I can leave this field with "none" set on the second level. This is not a correct implementation of "Required"
Users are not prompted on the second level "None" entered !
I will call this a bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cascading select field is a single entity. It's not 2 field.
From a data perspective, selecting a second-level value or not makes no difference... there is still data in the field.
In fact, there are some very valid business case for requiring a first-level value only.
I understand that the ability to have the "set required" functionality to be smart enough to give you this additional option whne the target field is a cascading select would be nice, but it would be a big change in the default implementation of the "set required" feature.
All that being said, using scriptrunner (and probably also some other apps) it is possible to apply validation to the cascading select to ensure that a second-level is always selected. Depending on your use case, this could be done with Behaviours, or Custom Validators in the workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The "none" option in multi select field is not a real value, it is used to indicate that you want to clear that field.
If you make the field required, users selecting none will be prompted that the input is invalid and they will have to make another selection.
If you really need to hide the none value, you could use behavior formField.setFieldOptions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mani,
Go to issues --> Custom Fields --> Select your field --> Configure --> Edit Default value.
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have added below script in Behavior Initialiser and mapped to particular issue type. However default value shows for all issue type in the project
def desc = getFieldById("summary")
def defaultValue = """Default Value""".replaceAll(/ /, '')
if (getActionName() == "Create" && !underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.