Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,460
Community Members
 
Community Events
184
Community Groups

How to remove all the options of a select list custom field using behaviours (Script Runner)

How to remove all the options of a select list custom field using behaviours (Script Runner).

1 answer

0 votes
Alejandro Suárez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 09, 2019 • edited

Hi @SWAPNIL SRIVASTAV 

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"])

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events