Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,161
Community Members
 
Community Events
165
Community Groups

Adding CSS for a field

Hi,

I need to apply styling for some custom fields that are read only to change  the background and other stuffs. Is there any other way to apply the styling for the fields apart from placing the code in announcement banner?

 

Kindly advise

1 answer

0 votes
brbojorque Community Leader Dec 19, 2019

You can actually do it but you have to make sure you are selecting the exact and unique html attributes that Jira is providing in the custom field.

The alternative is to use Scripted Fields from ScriptRunner.

https://scriptrunner.adaptavist.com/5.0.4/jira/scripted-fields.html

OR

To make sure the JS is scoped within the project or even issuetype you can use JSIncluder.

https://marketplace.atlassian.com/apps/1211670/jsincluder

It is a free add-on, you can inject a javascript code into a specific project and even issue type.

Keep in mind these are not fully supported by Atlassian, but you can always revert back to the community if there are issues.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

159 views 1 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you