Deploying a servlet in JIRA
We all know how useful a servlet is! JIRA provides an easy way to deploy a JAVA servlet with the help of the Servlet Plugin module. In this recipe, we will see how to write a simple servlet and access it in JIRA.
Getting ready
Create a skeleton plugin using the Atlassian Plugin SDK.
How to do it...
The following are the steps to deploy a JAVA servlet in JIRA:
Include the servlet plugin module in the
atlassian-plugin.xml
. The Servlet plugin module allows the following set of attributes:class
: It is the servlet Java class and it must be a subclass ofjavax.servlet.http.HttpServlet
. This attribute is mandatory.disabled
: It indicates whether the plugin module should be disabled or enabled by default. By default, the module is enabled.i18n-name-key
: The localization key for the human-readable name of the plugin module.key
: It represents the unique key for the plugin module. This attribute is mandatory.name
: It is the human-readable name of the servlet.system
: It indicates...