It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you