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

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).
主站蜘蛛池模板: 广宗县| 日照市| 宝坻区| 鄂托克前旗| 缙云县| 托克托县| 通道| 斗六市| 南溪县| 阜阳市| 玉龙| 盐城市| 皮山县| 高要市| 关岭| 东源县| 汽车| 舟山市| 增城市| 大关县| 平谷区| 固阳县| 奉贤区| 宜春市| 武宣县| 桐梓县| 荔波县| 离岛区| 武强县| 微博| 丽江市| 阿瓦提县| 西吉县| 佛坪县| 徐闻县| 桂平市| 东阳市| 德令哈市| 元朗区| 巩义市| 宁德市|