Forums

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

Trying to send attachment content to a REST api

Luke Richards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2020

Hello,

I have been racking my brains on this for a while, but I am struggling to come up with an answer. I am trying to have a post action script send the attachment content to a REST api for the purposes of updating a disparate system. 

I have found the streamAttachmentContent and I have found code snippets regarding this, however here is where I fall down, as this requires a consumer, which in all the examples is for InputStreamConsumer which is not a resolvable class. 

I am stuck right now, as I cannot import the utils.io package or anything to get this working. Any help would be useful. 

0 answers

Suggest an answer

Log in or Sign up to answer