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...

Following are the steps required to deploy a JAVA servlet in JIRA:

  1. Include the servlet plugin module in the atlassian-plugin.xml file. The Servlet plugin module allows the following set of attributes:

    a. class: This is the servlet Java class and it must be a subclass of javax.servlet.http.HttpServlet. This attribute is mandatory.

    b. disabled: This indicates whether the plugin module should be disabled or enabled by default. By default, ...

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.