We are using Jira v7.12.1 and JIRA Service Desk Application v3.15.1. I'm trying to call a webhook (created by me) that accepts a file object using org.springframework.web.multipart.MultipartFile. But, I'm just wondering how I can send the file object as it allows only JSON as an input to the webhook and I haven't seen any example where I can send multipart form attributes with file being present in that. Unfortunately, the file I need to send it not a JIRA attachment. So I have to send this file via webhook itself. Is there anyway I can send this file to the webhook server?
Webhook body - Custom Data is as below
{
"fileName":"Example.docx",
"title":"JIRA-Sample-1",
"subject":"JIRA First Example",
"cabinet":"/TEST test/1Client Documents",
"file": "D:\Atlassian\Application Data\JIRA\home/ease.email.client/received/aa5f05d0-6e92-452a-ac42-d571634e59f3.eml"
}
Regards,
Sandesh