Adding web resources into plugins
The web resources plugin module, like the resource module we just saw, allows defining downloadable resources. The difference is that the web resources are added at the top of the page in the header with the cache-related headers set to never expire.
An additional advantage of using the web resources module is that we can specify the resources to be included in specific contexts within the application.
How to do it...
The root
element for the web resource plugin module is web-resource
. It supports the following attributes:
Name |
Description |
|
The only mandatory attribute. This should be unique within the plugin. |
|
Indicates whether the plugin module should be |
Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.