Hi everyone,
I’m currently working on a Jira Cloud to ServiceNow integration where issues, comments, and updates sync both ways.
So far, I have successfully configured:
Issue creation from Jira → ServiceNow
Comment sync
Field updates
All of these are working fine using Jira Automation + ServiceNow REST APIs.
However, the only part that’s not working is attachments.
I’ve tried multiple approaches, including:
Sending attachments through Jira Automation with {{attachment.content}}
Receiving them on ServiceNow via Scripted REST API
Writing a custom script to decode and attach the files
The automation runs fine, and logs in ServiceNow confirm the API is triggered, but:
The attachments are not actually getting downloaded or saved on the ServiceNow side
The file body sometimes appears as empty (⚠ Empty file body)
Both Jira and ServiceNow are demo/developer instances
What I’m looking for:
A confirmed working approach (or example script) to transfer attachments from Jira Cloud to ServiceNow using automation and REST APIs (no IntegrationHub).
If anyone has configured this successfully in a demo/dev setup, I’d really appreciate your guidance or a sample payload or script snippet.
Environment Details:
Jira Cloud (Automation rules + Webhooks)
ServiceNow Developer Instance
Using Scripted REST API in ServiceNow (no IntegrationHub or MID Server)
Thanks in advance for any help.
— Hari
@Hari Krishna @Saad Uz Zaman Gohar @Liam Novak
Hello, Did anyone found any solution for this issue. I am able to create JIRA task from ServiceNow Flow, and also can able to sync comments bidirectional, send Attachments—>JIRA but couldn’t get valid attachment from JIRA to Servicenow.
Jira clearly returns valid binary data (200 OK, correct content type, correct length), but saveResponseBodyAsAttachment) never writes the file, and resp-getStream() is null.
It looks like the Scripted REST runtime is consuming or blocking the response stream, so ServiceNow refuses to save the attachment.
I even tried executeRequest) and raw Java HTTP, but those are blocked by instance security ( Illegal access to method openconnection() ).
Has anyone run into this before?
Is there a supported way to pull binary attachments from external systems (like Jira) into RITMs when saveResponseBodyAsAttachment fails inside Scripted REST?
Should this be done instead through IntegrationHub / Flow Designer ("Save response body as attachment") ? Any thoughts how to achieve this without getting IntegrationHub Enterprise subscription?
I found 2 ways for this one is you use the
Jira provides build in plugin free for 10 users
Base64 Attachment REST API Plugin
and other is i am providing you the link you can see it from there
https://blog.tgxn.net/multipart-upload-from-servicenow/
https://developer.servicenow.com/connect.do#!/share/contents/8774514_multipart_upload_helper?v=1.0&t=DISCUSSIONS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari ,
I am also working Servicenow to Jira integration using REST api , all of the things are working fine when i create an incident issue is created on JIRA , but when creating incident i attach attachment to it , the attachment goes to JIRA , but jira shows Empty or undefined , i have tried the plugin BASE64 JIRA decoder , but thats paid , free for 10 users we have more than that obv, so if u came across any solution , Do let me know!
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I came across a post on Inat Bix indir that mentioned how API calls can fail due to permission sync — maybe that’s what’s happening here too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.