Documentation for JIRA 4.2. Documentation for other versions of JIRA is available too.

Skip to end of metadata
Go to start of metadata

This page describes how to increase the size of the Components drop-down list. Please see JRA-3028 for the full 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/

  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 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="$"  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="$"  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')) - $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​.


There is no content with the specified labels