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
file. The Servlet plugin module allows the following set of attributes:class
: This is the servlet Java class and it must be a subclass ofjavax.servlet.http.HttpServlet
. This attribute is mandatory.disabled
: This indicates whether the plugin module should be disabled or enabled by default. By default, the module is enabled.i18n-name-key
: This is the localization key for the human-readable name of the plugin module.key
: This represents the unique key for the plugin module. This attribute is mandatory.name
: This is the human-readable name of the...