官术网_书友最值得收藏!

How to do it...

Jira uses Velocity templates to render custom fields. These templates are mostly HTML, with some special symbols. You can find all these files in the JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/plugins/fields directory, and the edit view templates are in the edit subdirectory:

  1. Open the edit-select.vm file (located in the previously mentioned directory) in a text editor, and remove the following code snippet:
#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
  1. Save the file and restart Jira. Make sure you do not change any other lines.
You can remove the None option from other custom field types, such as multi-select, by editing the appropriate file (for example,  edit-multiselect.vm).
主站蜘蛛池模板: 盈江县| 碌曲县| 鄂尔多斯市| 思南县| 绍兴市| 新乡市| 昆明市| 鄂托克前旗| 北海市| 长寿区| 文昌市| 贡嘎县| 泾阳县| 吉木乃县| 焉耆| 耒阳市| 昭通市| 青铜峡市| 奎屯市| 桐梓县| 寿阳县| 英吉沙县| 当涂县| 瑞安市| 包头市| 新巴尔虎左旗| 祁阳县| 平江县| 德化县| 安达市| 仲巴县| 淮南市| 临江市| 呼图壁县| 隆子县| 金华市| 大宁县| 司法| 大邑县| 寿宁县| 南靖县|