Downloading issue attachment in scriptrunner cloud

Jacek Ostrowski 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

0 votes
Cooper Latham 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!

Suggest an answer

Log in or Sign up to answer