Attachment Rest API for ServiceNow to JIRA integration

venkateshdhanap
Tera Contributor

Hi All,

We got a requirement to Built custom integration between SNow Problem module with JIRA Issue. I have built custom Rest based integration and able to create issue and add comments. 

Now we need to pass the attachments from ServiceNow to JIRA. 

It seems JIRA doesn't support Json for attachment API, It expecting file with "multipart/form-data" format.

Is it possible to convert attachment to the above format and post to JIRA?

Has anyone achieved it without MidServer?

Thanks in advance.

 

 

Thanks,

Venkatesh Dhanapal

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@venkateshdhanapal 

you can send multi-part form date from ServiceNow to JIRA.

I don't think mid server is required here

refer below links for multi-part form data and REST

https://community.servicenow.com/community?id=community_question&sys_id=d905946cdb679b8067a72926ca96...

https://community.servicenow.com/community?id=community_question&sys_id=591eb718db16db00b61ff3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=dcf3e30edb179300feb1a851ca96...

https://community.servicenow.com/community?id=community_question&sys_id=21619038dba5eb44f0612183ca96...

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@venkateshdhanapal 

you can send multi-part form date from ServiceNow to JIRA.

I don't think mid server is required here

refer below links for multi-part form data and REST

https://community.servicenow.com/community?id=community_question&sys_id=d905946cdb679b8067a72926ca96...

https://community.servicenow.com/community?id=community_question&sys_id=591eb718db16db00b61ff3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=dcf3e30edb179300feb1a851ca96...

https://community.servicenow.com/community?id=community_question&sys_id=21619038dba5eb44f0612183ca96...

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can also handle this via JIRA Spoke

Jira spoke - upload attachment from Jira to Service now

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

sharing links for sending attachment to JIRA

Send attachment from Servicenow to JIRA using REST API

Business Rule to Send Attachments from ServiceNow to JIRA

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

krishanu
Tera Contributor

Hi Venkatesh,

Did you manage to get this worked? I'm also stuck at the same point.