How can I send attachment from JIRA to an external API using ScriptRunner in JIRA cloud

Shravan Pandita June 19, 2022

How can I send attachment  from JIRA to an external API using ScriptRunner in JIRA cloud

1 answer

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2022

You will need to store the binary data of the attachment temporarily before pushing the data into your external API (i.e download then upload). I believe Scriptrunner limits in-memory usage, so you might not be able to simply just do a transfer except, you simply just want to post a string of the attachment location.

Shravan Pandita June 21, 2022

@Prince Nyeche  Thanks for your response .Do you have any sample code or documentation for the same.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events