Forums

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

How can I upload an attachment while creating a ticket through the API?

Reinaldo Gomes October 4, 2018

There is this project in my JIRA instance where adding an attachment is mandatory for the ticket creation. I simply CANNOT create the ticket and then attach a file to it. The system won't allow me to.

So, given this scenario, how can I upload an attachment while creating a ticket through the API?

1 answer

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2018

Hi Reinaldo

I don't know that this is possible. A while ago when I started creating tickets via the API, I did some research and you seem to only be able to add attachments via the API to an existing ticket.

Have you considered removing the mandatory bit for attachments?

Reinaldo Gomes October 5, 2018

Unfortunately, this attachment is a business requirement for this JIRA project, and there is nothing I can do about it...

Maybe there is a way to make an exception regarding the attachment for a single user or something like that?

Suggest an answer

Log in or Sign up to answer