Forums

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

Remove option "None" without requiring the field

Franco C. A. May 28, 2018

Hi, I need to remove the option None everytime I create select lists or radio buttons. I know it can be done through making it required but it affects the whole creation of issues. It is because during creation of issues, my select lists are not yet in the create issue screen therefore I can't proceed to make such.

I found out that it could be achieved without making the field to required if I'll edit the file "edit-select.vm" (C:\Program Files\Atlassian\JIRA\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit) by this link: 

https://confluence.atlassian.com/jirakb/how-to-remove-none-from-a-select-list-custom-field-144212308.html

however, this solution isn't updated for the current JIRA. By the way I am running the latest version of server (7.9.2) 

Thank you for your time

1 answer

0 votes
Alexey Matveev
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.
June 1, 2018

Hello,

If you edit the edit-select.vm you make this change for all fields with the select type. I guess, it is not what you want. 

I think you could use ScriptRunner or Power Scripts to limit the options.

ScriptRunner:

https://scriptrunner.adaptavist.com/5.4.7/jira/behaviours-overview.html

Power Scripts:

https://confluence.cprime.io/display/TR/Restrict+a+select+list+to+not+show+certain+values

Suggest an answer

Log in or Sign up to answer