Read the content of the file from given content url in Jira attachment JSON using scriptrunner

Sahrudai Reddy June 8, 2022

Hi ,

We are developing an integration, we need to send attachment to other ticketing service whenever attachment is added to Jira issue. We are using scriptrunner to call external API. But I'm stuck at how to send the actual content of the file 

We need to encode the content of the file to base64 format and upload the file.

I'm able to get the content url from the Jira attachment API, but how to get the file content from that?

image.png

Is there anyway to get the actual content or any workaround for this requirement would also be helpful.

Thanks,

Sahrudai

1 answer

0 votes
Sani
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 13, 2024

Hi @Sahrudai Reddy 


Did you get the any solution for this.
If yes, Please help me on the same.

Thanks,
Sheravani

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events