Changing status lozenge width beyond 20 characters?

We have recently started to look at upgrading to Jira v6.3 and on initial inspection it appears our statuses are too long to fit in the status lozenge bars.

Is there a method to amend the default width of these beyond 20 characters?

 

1 answer

1 vote
Mirek Community Champion May 19, 2014

Hi Matt,

You can playaround with CSS and change the default value

.jira-issue-status-lozenge-max-width-medium {
    max-width: 12em;
}
to something bigger.. for example 15em or 20em.
I hope that will help.
Best Regards,
Mirek

Thanks - where does this need changing?

Mirek Community Champion May 21, 2014

For example you can add this to your Announcement Banner:

<style media="screen" type="text/css">

.jira-issue-status-lozenge-max-width-medium {
    max-width: 20em;
}
</style>

Does this only work on the view screens? Is it possible to do the same for gadgets e.g. filter results?

Also can it be written into a file permanently rather than the banner?

Thanks

Mirek Community Champion May 25, 2014

Announcement Banner is showing on every page that is way it should work on every page. It should work. However when viewing a gadget or filter results there might be a different class. Knowing the name of the class will allow you to change this to mach your needs. It is also possible to put this somewhere in the source file, however you will need to always remember to add this customization back again after every upgrade. You will need to test all of that on a test instance first.

Good luck!

Hi, I see that this thread is 6 month old but did anyone get the css-changes to work on gadgets, for example the Filter Result gadget. As far as I can see it uses the same css-class. I've tried to change media from screen to all, did not work. Also tried to add key-word !important, no luck.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

74 views 0 3
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