Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding CSS for a field

Gowri_Sankar
Contributor
December 19, 2019

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 Champion
December 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.

Paul Lambert1 January 18, 2025

Thats jsincluder link above is a dead link now.

Suggest an answer

Log in or Sign up to answer