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

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).
主站蜘蛛池模板: 泽州县| 长乐市| 东阳市| 沅江市| 鄂伦春自治旗| 舒兰市| 青神县| 青川县| 丽江市| 澄江县| 万山特区| 邻水| 湾仔区| 江华| 布尔津县| 华坪县| 阿图什市| 永顺县| 南靖县| 凌海市| 庆云县| 乌拉特前旗| 筠连县| 玉田县| 五常市| 察隅县| 罗甸县| 郴州市| 中宁县| 云阳县| 越西县| 绿春县| 旬阳县| 安新县| 无为县| 上栗县| 新泰市| 敖汉旗| 金堂县| 广水市| 称多县|