How to Change Text Box Length on a Screen UI in JIRA

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The information in this page relates to customisations in JIRA. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page as customisations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.

The purpose of this article is to show how to change the length of a text box area of a field in a screen without changing the JIRA UI source code. This can be done by simple CSS rules in Announcement Banner in JIRA. Configuring an Announcement Banner will give you an introduction on Announcement Banner in JIRA.

Solution

  1. For this example, the length of Summary and Prioritytext box in Issue Creation screen will changed to be the same (100px).

  2. Click on "Create' to see Issue Creation Screen.

    (Auto-migrated image: description temporarily unavailable)
  3. Right-click on the text box of the field that you want to change the length. Click on Inspect Element.

    (Auto-migrated image: description temporarily unavailable)
  4. Take note of the id of the field.

    (Auto-migrated image: description temporarily unavailable)
  5. Choose Administration > System. Select User Interface > Announcement Banner in the System panel below.

    Keyboard shortcut: g + g + start typing announcement banner

  6. Place following CSS code in Announcement Banner and click on Set Banner.

    1 2 3 4 5 6 7 8 9 10 11 <style> #summary /* The "id" of the "Summary" text box */ { max-width: 100px; /* This line will set the length of the text box to 100px */ } #priority-single-select /* The "id" of the "Priority" text box */ { max-width: 100px; /* This line will set the length of the text box to 100px */ } </style>
    (Auto-migrated image: description temporarily unavailable)
  7. The result will be as following:

    (Auto-migrated image: description temporarily unavailable)

    Note: The length of text box for Summary and Priority fields are the same.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.