Send attachment from Servicenow to JIRA using REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2017 02:59 AM
I am working in ServiceNow to JIRA integration using REST API, I have implemented all the fields to create JIRA issue.
I am currently trying to send attachment from ServiceNow to JIRA ticket using mid server.
I used the below code as example in the post Jira REST Integration - How to send attachment? :
var request = new sn_ws.RESTMessageV2();
request.setHttpMethod('post');
request.setRequestHeader("X-Atlassian-Token","no-check");
request.setRequestHeader("Content-type","multipart/form-data");
request.setEndpoint('https://{jiraURL}/rest/api/2/issue/SN-2/attachments');
request.setBasicAuth("username","password");
request.setRequestBodyFromAttachment('abd7460b0fe39e001dc906ace1050e9f'); //sys_id of attachment record
var response = request.execute();
I am getting error in ECC Queue as 'attachment does not exists'
If anyone implemented this , please let me know .
Thanks in Advance.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 07:35 AM
Hi Barbara,
Attached is the code. There are a few properties you'll need to set in order for this to work but if you already have the basics set up (create issue, etc) then you should be good-to-go. I fought with this for a week before finally getting it to work so it was a real pain to set up. Let me know if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2017 03:04 AM
Hi Jessica,
Thanks for the code.
These days I'll work on it and I'll let you know if I need some other help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 06:40 AM
Hi All,
Did you managed to send attachment from Service Now?
I am still struggling with OOB API.
Let me know if anyone successfully implemented this using OOB API.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2017 02:45 PM
Hi All,
I have the similar requirement to send the attachment from Servicenow to Jira using OOB REST API. Please let me know if you have the solution.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 07:18 AM
did anyone manage in the end?
Same requirement here