add custom javascript to page (rapid board)?

How can I include a piece of custom JavaScript on some (or all) JIRA pages? In particular, I'd like to modify the Rapid Board cards. I'd love to be able to customize them with the fields I care about, but the next best thing is to be able to change their styling to better suit my needs. Right now, I use tampermonkey to implement my changes, but this is a pain to distribute to my team (especially if it needs to change).

3 answers

1 accepted

Accepted Answer
1 vote

you can package javascript and css files inside a plugin and set context to atl.general and atl.admin.

these two contexts will cover every jira pages

<web-resource key="key-resources" name="key Web Resources">
        <dependency>com.atlassian.auiplugin:ajs</dependency>

        <resource type="download" name="key.css"
            location="/css/key.css" />
        <resource type="download" name="key.js"
            location="/js/key.js" />
        <resource type="download" name="images/" location="/images" />
        <context>atl.general</context>
    </web-resource>

Thanks Sara! Is there any way to modify how the cards look with a plugin or some other approach other than monkeying with the existing DOM/CSS using JavaScript? It gets me most of the way, but if I could customize/add a little different data then it would be even better.

I'm not sure it exactly understand your question or not but I think the answer is yes. you can apply your own css and javascript without edditing existing files.

you can add new element to page with your own javascript file and then apply your own css.

or you can overrwite existing element's style and class again with your css or js file.

Another solution would be CUTE for JIRA (https://marketplace.atlassian.com/plugins/de.communardo.atlassian.plugins.cute).

You can use this as well to inject custom CSS and JS.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,731 views 14 13
Read article

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