Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate JIRA Application with Dynatrace?

Pranita Warik September 10, 2020

HI,

I want to establish a connection between JIRA and Dynatrace, so that data can flow from Dynatrace to JIRA for Issue Creation. The Dynatrace Team has asked for the below details. 

Name (name for the Integration)

JIRA Endpoint URI: (how to generate this?)

Username (I have created a user in JIRA system, should this user have admin rights?)

API Token: (how to generate this?)

Project Key, Issue Type, Summary (this is created in JIRA)

 

Is the Dynatrace Problem Integration for JIRA plugin mandatory for the Integration? 

If yes, how to download or install it? When I search it in Marketplace, there is no Download or Install button available.

2 answers

1 vote
Rudy Holtkamp
Community Champion
September 10, 2020

Hi @Pranita Warik ,

I think it is pretty well explained here on the Dynatrace Jira Integration page.

As Jira Endpoint URL you have to use your base URL followed by /rest/api/latest/ (e.g. https://jira.company.com/rest/api/latest/)

The username should be a user account that can create and edit issues in the project where you want to issues generated by Dynatrace to land. It does not need to be a admin account (preferably not)

There is no API token on server, you should use basic authentication (password). So it is best to create a user with limited access to your system.

And since Dynatrace is interacting with the rest api, you do not need to install an app.

You should however make sure that Dynatrace can reach your Jira instance (is it on VPN or behind a white listed firewall, etc.)

 

Good luck

Rudy

Pranita Warik September 15, 2020

@Rudy Holtkamp 

Thanks for your answer. We have tried exactly the same. PFA the screen. However, we are facing the 403 http error. Can you tell me why this error has occurred? 

I have created the user in JIRA, provided the rights to create/view issues in given project.

DynatracePage.png

Rudy Holtkamp
Community Champion
September 16, 2020

A 403 is an authentication error. Can you use the rest api via curl with those credentials?

curl -u dynatrace:<password> -X GET -H "Content-Type: application/json" http://172.25.10.204:8080/rest/api/2/issue/DM-1

Does 'dynatrace' have the right permissions in the DM project?

Pranita Warik September 17, 2020

Hi @Rudy Holtkamp 

I checked with the Network team. Firewall settings were not allowing the access to the server.

Now a firewall rule is configured. Dynatrace will hit the public ip configured for jira server and then the same will pass to the private ip. Now the request is hitting JIRA Server.

Here we are facing below issue:

The url is configured as: https://public ip/rest/api/latest

Also wanted to check on this: I have created the user dynatrace in JIRA and provided the issue creation rights. I have also created a issue in the project. Is anything missing in providing the access?

DynatracePage1.png

Rudy Holtkamp
Community Champion
September 17, 2020

The error message "Could not connect to the specified URL" suggest that Dynatrace is unable to connect to Jira. It still looks like a firewall/port issue. You should investigated it further. First try answering the following questions:

  1. So you now get a proper response from the curl command to https://1.6.94.211:8443 ?
  2. Is Dynatrace ip whitelisted?
Pranita Warik September 17, 2020

HI @Rudy Holtkamp 

I tried the curl command on App Server:


[root@apjiratestapp ~]# curl -u dynatrace:dynatrace -X GET -H "Content-Type: application/json" https://1.6.94.211:8443/rest/api/2/issue/DM-1

Did not receive any response to it.

The Dynatrace ip is whitelisted in JIRA.

Rudy Holtkamp
Community Champion
September 17, 2020

So no response. I see that you now renamed the project to DOWN instead of DM (difference between the two pictures you posted).

Is there already an issue in the DOWN project? If not please create it and use that issue key in the curl command.

If you still don't get a proper response then you should investigate why. That is probably the rootcause why dynatrace can't connect.

Are you able to ping 1.6.94.211?

Pranita Warik September 17, 2020

Hi @Rudy Holtkamp 

I tried with the correct key now:

[root@apjiratestapp ~]# curl -u dynatrace:dynatrace -X GET -H "Content-Type: application/json" https://1.6.94.211:8443/rest/api/2/issue/DOWN-1
curl: (7) Failed to connect to 1.6.94.211 port 8443: Connection timed out

 


[root@apjiratestapp ~]# ping 1.6.94.211
PING 1.6.94.211 (1.6.94.211) 56(84) bytes of data.
--- 1.6.94.211 ping statistics ---
676 packets transmitted, 0 received, 100% packet loss, time 927ms

Rudy Holtkamp
Community Champion
September 17, 2020

That means that you can't reach the Jira server on that address. And that has to do with the firewall (or the IP address is not correct) or with the proxy server. Just get help from your Network team.

 

----

Note that if you really used 'dynatrace' as pwd you need to change it because of security reasons (they are all watching us ... ;-) )

Pranita Warik September 22, 2020

HI @Rudy Holtkamp 

Our Network team has replied:

1.6.94.211 is the public ip they have NAT for the internal 172.25.10.204:8080 

The traffic is flowing from Dynatrace to public ip to the internal jira server.

They are asking to recheck on the JIRA EndPoint url:

 https://1.6.94.211:8443/rest/api/latest

 

Can you explain how the api works to create a JIRA Issue? Is there any documentation available?

There is a Create REST Endpoints functionality in jira. Should I create an entry over there?

Rudy Holtkamp
Community Champion
September 22, 2020
0 votes
Diana_Architect_ZigiWave
Atlassian Partner
April 12, 2022

@Pranita Warik have you thought about using an external tool to help you with the integration? A tool like ZigiOps will help you connect the two systems in no time, allowing you to customize it to fit your use case. It also syncs any fields (default or custom ones). Feel free to check it out and if you think it would be beneficial for you to use it in the future, you may book a demo to see ZigiOps in action. 

Regards, Diana (ZigiWave team)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events