Adding CSS for a field

Gowri_Sankar 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

Log in or Sign up to answer