The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Downloading issue attachment in scriptrunner cloud

Jacek Ostrowski
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!
April 22, 2022

Hi guys!

I have to change issue attachement name using scriptrunner in jira Cloud. Got all data in issueUpdated listener. Now i have to download the file using script.

Is there any way to download issue attachment as InputStream using Jira Cloud Rest API?

Already tried just fetch it using URI:
InputStream input = new URL(it.content).openStream();

But then i got authorisation error.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Cooper Latham
Contributor
April 19, 2023

Hey @Jacek Ostrowski

Did you get this working? I am trying to develop something similar, but I am running into issues.

Thanks!