JIRA 5.1 : Changing the Size and Content of the Components Select List

This page describes how to increase the size of the Components drop-down list. Please see JRA-3028 for the full feature request.

The page _Velocity_Template_Customisation does not exist.

This workaround will apply to all Components drop-down lists in the instance.

Increasing the size of the field

Edit <atlassian-jira/WEB-INF/classes/templates/jira/issue/field/components-edit.vm. Change the line:

<select multiple name="$field.id"  id="$field.id" size="#if ($components.size() > 3 ) 5 #else 3 #end">

For example, if you wanted to make it 15 (in the case where there are more than 3):

<select multiple name="$field.id"  id="$field.id" size="#if ($components.size() > 3 ) 15 #else 3 #end">
Adding a Description

From <atlassian-jira/WEB-INF/classes/templates/jira/issue/field/components-edit.vm, change:

>$textutils.htmlEncode($component.getString('name'))</option>

to:

>$textutils.htmlEncode($component.getString('name')) - $textutils.htmlEncode($component.getString('description'))</option>

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

RELATED PAGES
No content found for label(s) jira-custom-velocity.