Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Issue with Attachment using REST API

Andy Grace June 13, 2013
Hi Is there a way to create an issue with an attachment using the REST API?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Andy Grace July 2, 2013

Thanks, I had the attach but my problem was as I was firing the create via a cURL in a command shell I was unable to get the issue key back to pass to the attach - however, my workaround is to write the output of the create to a file then read and parse that file to get the key, before deleting the file.

0 votes
Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2013

Not that I am aware of. However, you can add attachment to an issue using /rest/api/2/issue/{issueIdOrKey}/attachments

TAGS
AUG Leaders

Atlassian Community Events