You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am trying to create a jira plug in so for that i created a web item in required place and now iam not able to map the url while clicking the web item to the servlet, I tried changing the web.XML of the plug in but it's not working do i want to make any change in web. XML of Tomcat
Hello @JK
There is no need to change the tomcat web.xml file for a Jira plugin.
This is configured in the plugin.xml
Your web item xml may look like this. All it contains is a link in the UI, admin panel etc.
The link element has a url in there that will be invoked when it is clicked
<web-item key="${atlassian.plugin.key}-EventListenerMenuItem"
name="Admin Menu : Event Listener Configuration Menu Link"
section="admin_plugins_menu/${atlassian.plugin.key}-AdminMenu"
weight="131"
application="jira">
<description>Event Listener Configuration</description>
<label key="el.admin.label" />
<link linkId="${atlassian.plugin.key}-EventListenerAdminLink">
/plugins/servlet/eventlistener/admin
</link>
</web-item
An additional element to listen for the request.
<!-- Configuration Servlet -->
<servlet key="${atlassian.plugin.key}-EventListenerAdminConfig"
name="Event Listener : Configuration"
class="za.co.liquidesign.jira.admin.events.EventListenerAdmin">
<url-pattern>/eventlistener/admin</url-pattern>
</servlet>
The class referenced in the servlet element
public class EventListenerAdmin extends HttpServlet {
@ @Override
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.