Very easy with ScriptRunner!

But first… you need to change the setenv.sh file from your bin folder of JIRA.

We need to add to the JVM_REQUIRED_ARGS the system property plugin.resource.directories

Captura de pantalla 2017-03-30 a las 12.36.08

Once added to the target folder, you can upload here the CSS or JS files you need for you UI customizations.

Then RESTART the jira service ( stop-jira.sh and start-jira.sh)

You can see if the folder is loaded correctly invoking ps aux | grep java

Captura de pantalla 2017-03-30 a las 12.30.30

Create in the target folder another folder called “modules”. And copy inside this file and name it as “green-issue.css”


body {
color: green !important;
background-color: black !important;
}

.issue-body-content {
color: green !important;
background-color: black !important;
}

.aui-page-header {
color: green !important;
background-color: black !important;
}

.command-bar {
color: green !important;
background-color: black !important;
}

h2 {
color: green !important;
background-color: black !important;
}

h1 {
color: green !important;
background-color: black !important;
}

li {
color: green !important;
background-color: black !important;
}

.aui-sidebar-body {
color: green !important;
background-color: black !important;
}

.aui-header {
color: green !important;
background-color: black !important;
}

.aui-nav-item {
color: green !important;
background-color: black !important;
}

Once started JIRA, you can go to “Cog icon–>Add-ons–>SCRIPTRUNNER–>Script Fragments

And add a Web Resource action with these parameters

Captura de pantalla 2017-03-30 a las 12.08.39

Then go to any Issue and make a preview…. AS/400 f**k’n style!

Captura de pantalla 2017-03-30 a las 12.30.56

Posted by:.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s