Possible to make edit screen wider so name of text field is on one line?

I have a name for a text field that is shown on two lines in the edit screen. Is it possible to make the edit screen wider?

Cost changes 5-PG-61

3 answers

1 accepted

We put the following text into the Announcement Banner textbox to get the entire field's name on one line.

AJS.$(document).ready(function() 
{
	AJS.$('.name').css({"white-space":"normal"});
	AJS.$('.name').css({"width":"auto"});
});

Thanks! But when I add this to the Banner I only see the text in the Banner. Do you know if there something I need to do to make this work?

Add within the script tag

<script>
...
</script>

Hi,

You need to put <script>-tags around the code snippet since the announcement bannner is using html.

Look at: https://gist.github.com/aheusingfeld/1723281 as an example

Beware: If you miss a tag you may lock up your entire instance! This method is not recommended in my opinion and should only be used for testing purposes.

Check out:

https://confluence.atlassian.com/display/JIRAKB/JIRA+Pages+Are+Hidden+After+Configuring+Announcement+Banner

if you get this problem!

// Svante

<script>
AJS.$(document).ready(function()
{
    AJS.$('.name').css({"white-space":"normal"});
    AJS.$('.name').css({"width":"auto"});
});
</script>
Adding the code within the script tags also doesn't work.  I have tried adding this script in the announcement banner as well as the Description . Please help with the right code and approach

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,096 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot