How to stop Custom CSS/js files from overriding JIRA Built in styles/js files

Jacob Turley May 5, 2017

Okay, to kind of explain what is going on:

I am building a plugin and am trying to create a "fancy" button(Modal) via bootstrap.  When I include the styles/scripts via:

$webResourceManager.requireResource("InfuisonSoftPlugin:customStyles")

The styles are applied, but it breaks some functionality in Jira.  The one major thing is that when I go to click the "edit" button on the view issue screen, it just sits and acts like it is loading data, but it will sit there for eternity.  Another thing is this happens: 

 

Capture.PNG

Here is my resource code in atlassian-plugin.xml

 

<web-resource key="customStyles">

<resource type="download" name="bootstrap.min.css" location="bootstrap.min.css"/>
<resource type="download" name="jquery.min.js" location="jquery.min.js"/>
<resource type="download" name="bootstrap.min.js" location="bootstrap.min.js"/>
<context>jira.view.issue</context>
</web-resource>

Any ideas?

 

1 answer

0 votes
Alexander Hoset _Telenor Norway_ August 8, 2017

JIRA already ships with jQuery. is there a reason you need a custom build of it? 

Alexander Hoset _Telenor Norway_ August 8, 2017

Hi

See this for more info:

info 1

info 2

info 3

 

For styles atlassian uses: AUI

Suggest an answer

Log in or Sign up to answer