How to remove all the options of a select list custom field using behaviours (Script Runner).
Hi @SWAPNIL SRIVASTAV
You could simply do this (you can put this in the initializer script):
import com.onresolve.jira.groovy.user.FieldBehavioursimport com.onresolve.jira.groovy.user.FormFieldimport groovy.transform.BaseScript@BaseScript FieldBehaviours fieldBehavioursFormField ffPruebaSL = getFieldById("customfield_10201") // Change with your field IDffPruebaSL.setFieldOptions([:])// If you want the "None" Option to be available uncomment the following line and comment the previous one//ffPruebaSL.setFieldOptions(["0":"None"])
It looks like you're new here. Sign in or register to get started.