How to change Multi Select Custom field size using script
By default, Multi Select custom field will only show maximum 5 rows of options (refer screenshot below), this is not convenient for some users who have more than 20 options in their multi select custom field. Below is the workaround to change the size of the field using simple script.
Thanks Kanishk Choraria for this workaround.
Atlassian does not support customizations to JIRA. For more information about Atlassian support, see Atlassian Support Offerings.
The Steps
- In Custom fields screen, click on Edit of the custom field.
- When the page is loaded, refer to ?id= at the address field of the browser for the custom field ID, refer the screenshot below on the highlighted red area for the id
Replacing last five digit of 'customfield_10010' on the sample script below to match the ID you have obtained on the step above:
<script type="text/javascript"> mselectbox = document.getElementsByName('customfield_10010'); mselectbox[0].setAttribute("size", "20"); </script>
- The size of the customfield will change based on the attribute configured on the parameter, example above, the size of multi select field will be expand to 20 rows when the ("size","20") is set, feel free to replace the number to suit your own preference.
- Put the script above to Description of custom field (shown below) and update.
Result
The size will change based on the parameter set on the script.