Custom Field Width Less than Available Options Length

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Low
    • None
    • Affects Version/s: 4.2, 4.2.1, 4.2.2, 4.2.3, 4.2.4
    • Component/s: Issue - Fields
    • 4.02

      Symptoms

      After upgrade your JIRA instance to version 4.2 or higher, some custom fields become truncated when viewing the selected options.

      Cause

      This occurs because after version 4.2, the CSS responsible for displaying the options of custom fields provides only a fixed width value (of 250px) to custom fields. Custom fields that ship with JIRA are fixed for this change, but custom fields from third party plugins may experience the issue.

      Resolution

      This is resolved in JRA-24112 and JRA-36062.

      Workaround

      This workaround involves customisations to JIRA which are not supported.

      1. On the filesystem, navigate to $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/plugins/field/edit/;
      2. Choose the custom field type you want to edit and backup the related file. (e.g. Single Select List: edit-select.vm);
      3. Find the select attribute line (e.g. <select class="select" name="$customField.id" id="$customField.id">) and add the parameter style="width:auto" inside it. (e.g. <select class="select" name="$customField.id" id="$customField.id" style="width:auto">);
      4. Save your modifications and restart JIRA. All of your custom fields of that type will then display with the customized CSS from step 3.

        1. fixed_size_field.png
          9 kB
          Leandro Fanese Nunes [Atlassian]

            Assignee:
            Unassigned
            Reporter:
            Leandro Fanese Nunes [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: