Using filters to intercept queries in JIRA
Servlet filters provide a powerful mechanism to intercept queries and perform clever actions such as profiling, monitoring, content generation, and so on. They work exactly like any normal Java servlet filter and JIRA provides the ServletFilterPluginModule to add them using plugins. In this recipe, we will learn about how to use filters to intercept certain queries to JIRA and how we can utilize them!
Getting ready
Create a skeleton plugin using the Atlassian Plugin SDK.
How to do it...
As with other servlet plugin modules, a servlet-filter
plugin module also has a unique key and a class associated with it. The name attribute holds the human-readable name of the filter and weight indicates the order in which ...
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.