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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ... ;-) )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the example from the Atlassian docs: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#creating-an-issue-examples
And here another example from the Atlassian community: https://community.atlassian.com/t5/Jira-questions/Create-issue-and-or-data-with-JSON-REST-API/qaq-p/154403
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.