Install JIRA Plugin

JIRA Integration
0.04 Version of JIRA Plugin
Rajesh Jain
JIRA Integration with dynaTrace
• Install JIRA
• Configure JIRA
• Install JIRA Plugin
• Configure JIRA Plugin
• Test JIRA Plugin
• Modify/Complile/Redeploy
• JIRA for automatic Incident Creation
2
Install JIRA
•
•
Download JIRA from the website
–
Create a Trial Account
–
Download from http://www.atlassian.com/software/jira/try/
Install JIRA
–
Use the Advanced Installation and configure the Ports to ensure they don’t conflict with dynaTrace
Ports
–
Before starting JIRA change the OSGI Timeouts to 300 seconds by changing the registry settings
Regedit -> HKEY-LOCAL_MACHINE->SOFTWARE->WOW6432NODE->Apache -> Procrun 2.0->JIRAXXX->Parameters->JAVA>Options
-XX:MaxPermSize=512m
-Datlassian.plugins.enable.wait=300
–
Disable XSRF Token by changing the file C:\Program Files\Atlassian\JIRA\atlassian-jira\WEBINF\classes\jira-application.properties file
Add the following line jira.xsrf.enabled=false
– Install JIRA as service
– If JIRA doesn’t startup, cleanup the OSGI Cache under C:\Program
Files\Atlassian\Application Data\JIRA\plugins\.osgi-plugins and restart.
3
Configure JIRA
•
Configure JIRA
–
Start JIRA service and navigate to the JIRA Dashboard
E.g. http://localhost:8070
–
Create a local user
–
Create a Project easyTravel
–
Create a sample Issue and check the mandatory fields. These fields are required when we configure
the JIRA Plugin.
–
Get the Project ID by
Dashboards->Projects->Select the Project->Summary->Hoover Edit Project(Right) to get the link
with the Project ID
e.g. http://localhost:8070/plugins/servlet/project-config/EASYTRAVEL/summary
4
Install JIRA Plugin
•
Download the JIRA Plugin from the Community Portal (or this Plugin JAR)
–
•
5
https://apmcommunity.compuware.com/community/display/DL/JIRA+Action+Plugin
Launch dynaTrace client->Servers->Plugins->Install Plugin
Modify the Plugin and Deploy
6
•
Edit the Code if there is a need to change some parameters or make some changes.
•
The code is checked out under
C:\users\<username>\workspace\JIRA___Create_Issue_Action_Plugin
•
Build/Test the changes
•
Deploy it once you are satisfied.
Configure JIRA
7
•
Checkout the JIRA Plugin
•
Switch Tab to Development Tab
•
Click Test and configure the Settings to test if this plugin works. You can also check the log file under
dynatrace\log\server\com.dynatrace.test.com.dynatrace.diagnostics.jira.CreateIssueActionPlugin.action.0.0
Configure Incidents and JIRA
8
•
Select the Profile e.g dynaTrace Self Monitoring
•
Select an existing Incident or create a new Incident. E.g. Collector Not Connected
Configure Incidents and JIRA
•
Add an action and select JIRA Action.
•
Configure the JIRA Action. Provide the name of the Project
associated with the Profile. Issue Type 2 is new Issue
9
•
Test by creating the incident, e.g. Shut down the collector
•
Check the JIRA Dashboard to see if the issue is created
To-do
• Version check doesn’t work
• The new release of JIRA provides REST API’s
It would be desirable to move the plugin to use the REST
Interface instead of the HTTP URL POST
https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API
s#JIRARESTAPIs-GettingStartedwithREST
10
11
© 2011 Compuware Corporation — All Rights Reserved