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
Welcome to the community!
The JiraAPI is working as expected.
The problem here is "https://urlservicenow/api/now/attachment/Idfichero/file" is not a public link. You would need to use the ServiceNow API to download the file in a temp folder and then use the Jira REST API
Cheers
Ajay
How to achieve the above scenario.I want to move attachments from servicenow to jira
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.