Forums

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

Attachment download by atlassian sdk

Laith Ata
Contributor
August 3, 2021

Hello everyone, 

 

I have trouble to use the Atlassian SDK with mine Jira plugin to download an attachment through a postfunction in the workflow. The attachment should be downloaded directly to the user, not inside Jira. Do you have an idea or code snippet how to download an attachment directly? 

 

Thanks in advance. 

1 answer

1 accepted

1 vote
Answer accepted
Nir Haimov
Community Champion
August 10, 2021

Hi @Laith Ata 

Instead of trouble with the sdk, write js in your plugin, it will be much easier, js running on the user browser, so it will be download directly to the user pc, basic simple js, no need for sdk.

Each attachment have a url in the jira server, look in Google for js code to download file and that is all you need 

Laith Ata
Contributor
August 11, 2021

Thanks! 

Suggest an answer

Log in or Sign up to answer