How to remove all the options of a select list custom field using behaviours (Script Runner).
You could simply do this (you can put this in the initializer script):
import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
FormField ffPruebaSL = getFieldById("customfield_10201") // Change with your field ID
ffPruebaSL.setFieldOptions([:])
// If you want the "None" Option to be available uncomment the following line and comment the previous one
//ffPruebaSL.setFieldOptions(["0":"None"])
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.