Tags
It’s seems there are a lot of queries on how to increase the size of custom fields in JIRA. In order to customize any built-in custom fields, you need to edit the appropriate file which depends on the custom field type that you wish to customize it. Most of the custom fields files are located in <jira_install>/atlassian-jira/WEB-INF/classes/templates/plugins/fields/edit/ directory.
If you have several custom fields for modification, this will be tedious to restart JIRA after each time you had modified the velocity file. In order for the changes in the velocity file to be picked up without a restart (but you need to refresh the page), you can try the following workaround:
- Locate the velocity.properties in <jira-install>/atlassian-jira/WEB-INF/classes/ directory.
- Set to false for class.resource.loader.cache:
class.resource.loader.cache=false
- Uncomment this line as well:
velocimacro.library.autoreload=true
Reference: Deploying Velocity Templates without a Restart
Cascading Select
File name: edit-cascadingselect.vm
Location: <jira_install>/atlassian-jira/WEB-INF/classes/templates/plugins/fields/edit/ directory.
- Find this particular line in the file:
<select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}"> - Modify the line as following to increase the size of cascading select field:
<select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}" style="width:200px"> - The previous step is for the parent field. Cascading select has two select lists. So, you need to do the same thing for child field or the second select list. You need to find this particular line in the file:
<select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1"> - Modify the line as following:
<select class="select cascadingselect-child" id="${customField.id}:1" name="${customField.id}:1" style="width:200px"> - If you wish to increase the size for particular cascading select, you need to know the custom field id of the particular cascading select. You can find the field id by hovering to the Configure link for the particular cascading select in the View Custom Fields page (Administration > Issue Fields > Custom Fields). You need to add the following line into the file (Please do the same for the second select list as well) before the default code (Step 1):
#if ($customField.id=="customfield_10010") <select class="select cascadingselect-parent" id="${customField.id}" name="${customField.id}" style="width:500px"> #end - Please remember to restart JIRA for the changes to take effect.
Good post..