Service-Now Jira Rest Integration

garyopela
ServiceNow Employee
ServiceNow Employee

Much thanks to John Andersen, as always, for his stellar work on the Service-Now platform with regards to integrations.

ServiceNow integration to JIRA through REST API's-John James Andersen

 

I was wondering if anyone had any tips on this. I set this up and for some reason my service-now instance isn't able to communicate with the Jira instance. I can see in my logs whenever SN tries to send the data to jira to open a bug, I get the following returned: "Jira issue created: undefined"

 

Do I need to set up anything on the Jira side?

 

I have verified the "Jira base instance URL", the "Jira Project Key", as well as the "Custom ID for Service Now". Also I am having to use a mid-server, and I have verified it is up and running.

 

Any help would be greatly appreciated, as I have a lot more work to do on expanding this integration beyond just incident, but first I just have to get incident working.

 

Thanks!

1 ACCEPTED SOLUTION

pavel_muller
Giga Contributor

I've done a large JIRA integration based on the Andersen's code too. But I improved quite a lot there including the webhooks (used for updates from JIRA to SNC).



To debug your problems, the best way is to watch the ECC queue responses. There you can see the full JIRA response including the error messages and JSON. The Andersen's code is not very robust in terms of error handling. You will have to improve it before going into production.


View solution in original post

83 REPLIES 83

Gary, and what if you delete issues (from Snow or from Jira)? I noticed now that they are not synched...


you can write methods for handling all these extra transactions yourself if you know how... the JIRA REST API is pretty well documented, sometimes even examples are available to show how one would go about making calls for their service...



In our implementation, we made ServiceNow talk to mulitple Jira instances and projects were selected/determined from a configuration item... a specific JIRA instance was decided from an assignment group...


phil-good
Tera Contributor

Hi Skender,



Did you manage to get all of this working around for the projects?   Could you share how you did this?



Thank you!


Phil


Hi Gary,



We are working on SN-Jira integration using REST API. I am new to this .


Could you please let me know if we would need to create a Service Account in SN User table for this integration?


If yes, what would be the configuration details for this Service Account.



Thanks much in advance!


thakkallapallay
Tera Contributor

Hi All,



In wiki i saw a note that this POC does   not support   for Jira versions beyond version 7.


We are currently in Jira version 7.1.2. Is there any other alternative for this POC?



Thanks,


Ramya.