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

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

Add attachment fails silently

Yibo Liu I'm New Here Jun 21, 2021

Hi there,

I'm using Jira java API to add attachments to existing open issues. Sometimes I see the

Promise<Void> addAttachment(URI attachmentsUri, InputStream in, String filename);

 finishes without any exception thrown, but the file was not actually attached. To confirm this, I added one more checking of getAttachments(), to see if the number of attachments increases, after the execution of addAttachment(). It turned out to be that sometimes the number does not increase. 

Can I know in what kind of scenario can this happen and how can I prevent it?

Thanks a lot!

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