Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Juan carlos espinoza May 4, 2021
How to Remove the "None" option in a "Cascading Pick List" field in Jira Service Desk




2 answers

1 vote
Mikael Sandberg
Community Champion
May 4, 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. 

Juan carlos espinoza May 4, 2021

 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

Juan carlos espinoza May 4, 2021

How can I remove it with ScriptRunner?

Mikael Sandberg
Community Champion
May 5, 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
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 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