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!
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