In JIRA 6.2 (and below) and its file-based attachment API it was possible to:
In JIRA 6.4 the file-based API is deprecated, in favor of the new stream-based API, and it appears that my previous approach is not possible anymore, because the new TemporaryWebAttachment
has no getFile()
, getStream()
or something similar. In fact, the only way I found to get to the attachment data, is by first converting it to a real attachment and then using AttachmentManager.streamAttachmentContent()
to read the data. But that is not what I want. I don't want to convert to a real attachment first. I only need the temporary attachment for the duration of my Action.
So my question:
In JIRA 6.4, how to read temporary attachments without converting them to real attachments? Is it possible?
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay!
If I find out some information, I'll inform you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, unfortunately not. My workaround – as described my question – is to first convert the temporary attachment into a real attachment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
I have the same question... https://answers.atlassian.com/questions/36602735
Do found some information ?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.