This page last changed on Jul 08, 2010 by tsantos.

There are some instances where the 'NONE' in every select list needs to be removed. By default in JIRA you cannot do this from the web interface. See JRA-7687 for a discussion on this feature request.

Customisations to Velocity templates or other JIRA files are not included in the scope of Atlassian Support.
Deploying Velocity Templates without a Restart

In a development instance, you can play with picking up velocity file changes without a restart.
From <jira-install>/atlassian-jira/WEB-INF/classes/velocity.properties:

  1. Change class.resource.loader.cache from true to false
  2. Uncomment (remove the # sign from) #velocimacro.library.autoreload=true
Keep in mind that the next time you upgrade JIRA – or need a new installation for any reason – you will have to manually copy any changes you have made to the JSPs or tempates into the new installation of JIRA. If the JSPs or templates have changed in the newer version, you will have to port your customization into them.

This workaround will apply to all Select List Custom fields in the instance.

To remove the field, edit <atlassian-jira/WEB-INF/classes/templates/plugins/fields/edit/edit-select.vm. Delete the lines:

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

The following code should remain:

...
<select name="$customField.id" id="$customField.id">  #foreach ($option in $configs.options)
    <option value="$textutils.htmlEncode($option.value)"
  #if ($value && $value == $option.value)selected#end
    >$option.value</option>
  #end
</select>
...

Make sure to back up the velocity file before changing it. Keep in mind the notes from Modifying JIRA Templates and JSPs.

RELATED PAGES
Page: Removing Commas for Values Held in Number Field Custom Field Type
Page: Changing the Size and Content of the Components Select List
Page: Removing NONE from the Issue Security Drop-Down List
Page: Changing the Size of the Fix Versions and Affects Versions Select List
Page: How to Remove 'NONE' from a Select List Custom Field
Page: Changing the Size of the Text Area Custom Field
Document generated by Confluence on Mar 27, 2011 18:51