Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-24601

Custom Field Width Less than Available Options Length

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 4.2, 4.2.1, 4.2.2, 4.2.3, 4.2.4
    • Issue - Fields

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: