How to attach an attachment in a JIRA issue using REST API

Usage FAQ

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Upload the original_image.jpg using the following REST API code:

curl -D- -u {username}:{password} -X POST -H "X-Atlassian-Token: nocheck" -F "file=@{path/to/image}" http://{base-url}/rest/api/2/issue/{issue-key}/attachments

 

For more information, please review our JIRA REST API code: https://docs.atlassian.com/jira/REST/latest/#idp2011456

(info) At the moment, JIRA do not have the essence of encoding binary data.

Last modified on Sep 10, 2013

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.