开发者

Appending JavaScript to all pages in JIRA

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:

  1. Define web resource module that will list your .js files you want included.
  2. Define servlet filter module and use URL pattern to specify which pages you'd like to intercept.
  3. 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.

  1. Open Jira Administration - System
  2. on the left side find USER INTERFACE section
  3. click Announcement Banner

or just simple push . (dot) and write Announcement Banner, push Enter button.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜