We need to attach a file that we have in a servicenow task to a JIRA issue, the call that we are using.
curl --request POST \
--url https://urljira/rest/api/3/issue/ID-ISSUE/attachments \
--header 'Authorization: Basic yyyyyyyyyyyyyyyyyyyyyyyyyy' \
--header 'Content-Type: multipart/form-data; boundary=---011000010111000001101001' \
--header 'X-Atlassian-Token: no-check' \
--cookie atlassian.xsrf.token=xxxxxxxxxxxxxxxxxxxxxx n \
--form file=https://urlservicenow/api/now/attachment/Idfichero/file
We have verified that if instead of a link to the file in servicenow, we put a path C: \ XXX \ File.txt, the file is attached correctly.
some idea of how you could make the call to attach the file directly from servicenow.
Thank you