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

Still need help?

The Atlassian Community is here for you.

Ask the community

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.


Purpose

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 Priority text box in Issue Creation screen will changed to be the same (100px).
  2. Click on "Create' to see Issue Creation Screen.
  3. Right-click on the text box of the field that you want to change the length. Click on Inspect Element.

  4. Take note of the id of the field.


  5. Choose Administration > System. Select User Interface > Announcement Banner in the System panel below.
    Keyboard shortcutg + g + start typing announcement banner
  6. Place following CSS code in Announcement Banner and click on Set Banner.

    <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>

  7. The result will be as following:

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

Last modified on Mar 21, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.