Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using curl to attach html to a Jira issue - JSON response is just "[]"

Keith Adams September 13, 2019

My curl command is below. From the Atlassian documentation it appears to be correct.

curl -D- --url "https://{my server}/jira/rest/api/2/issue/AID-4314/attachments" --insecure --output "c:\windows\temp\aidjira_add_html_content_keadam.reply1" -H "X-Atlassian-Token: nocheck" -u {my id}:{my password} -X POST -F "FILE=@c:\windows\temp\current_email_body_html1.html"

In the console window I get at the beginning:

HTTP/1.1 100 Continue

HTTP/1.1 200

But all that's in the response is "[]" - and the html file does not get attached. I've tried searching the forums but just find verification that my curl is correct. If anybody can help me, I'd be most obliged.

Keith Adams

0 answers

Suggest an answer

Log in or Sign up to answer