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,254,223
Community Members
 
Community Events
164
Community Groups

How to Remove the "None" option in a "Cascading Pick List" field in Jira Service Desk

How to Remove the "None" option in a "Cascading Pick List" field in Jira Service Desk




2 answers

1 vote
Mikael Sandberg Community Leader May 04, 2021

Hi @Juan carlos espinoza,

Welcome to Atlassian Community!

In order to remove the none option you have to set a default value for the field and make it required. You can also achieve this if you use Scriptrunner. 

 Hello, I already put a default value and made the field mandatory, but I still get "None" in the options of the cascading selection list field

How can I remove it with ScriptRunner?

Mikael Sandberg Community Leader May 05, 2021

Have a look at this thread on how to remove the none option using Scriptrunner, https://community.atlassian.com/t5/Jira-questions/Possible-to-remove-none-in-custom-field-list/qaq-p/260718

0 votes
Yan Ioffe I'm New Here Feb 06, 2022

Edit template file "atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit\edit-cascadingselect.vm"

Remove both instances of this line from the file, then restart JIRA.

<option class="default-option" value="">$i18n.getText("common.words.none")</option>

You can get rid of "none" for multiselect and simple select as well, by removing this segment:

#if (!$fieldLayoutItem || $fieldLayoutItem.required == false)
<option value="-1">$i18n.getText("common.words.none")</option>
#else
#if ( !$configs.default )
<option value="">$i18n.getText("common.words.none")</option>
#end
#end

from select

and

#if ( !$isFrotherControl && $fieldLayoutItem && $fieldLayoutItem.required == false)
<option value="-1"#if (!$selectedValues || $selectedValues.empty || $selectedValues.contains("-1")) selected="selected"#end>${i18n.getText('common.words.none')}</option>
#end

from multiselect. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

1,364 views 10 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you