How to add an attachment to a JIRA issue using REST API

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Purpose

This article walks through the process of uploading an attachment to an issue via the REST API.

Solution

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


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


DescriptionThis article walks through the process of uploading an attachment to an issue via the REST API.
ProductJira
PlatformServer
Last modified on Jan 9, 2019

Was this helpful?

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