I'm trying to append two JavaScript files to all pages in JIRA, following this guide.
However, this only works on the Dashboard page when you log开发者_Python百科in, not on other pages.
Does anyone have a clue why it does not work?
You can do that with a plugin:
- Define web resource module that will list your .js files you want included.
- Define servlet filter module and use URL pattern to specify which pages you'd like to intercept.
- In the servlet filter class, use web resource manager to require your web resource module:
ComponentManager.getComponentInstanceOfType(WebResourceManager.class) .requireResource("com.whatever.plugin:my-resource");
There is more easiest way to add javascript shared everywhere in jira.
- Open Jira Administration - System
- on the left side find USER INTERFACE section
- click Announcement Banner
or just simple push . (dot) and write Announcement Banner, push Enter button.
精彩评论