Forums

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

Store approved Documents directly to FTP location

Leonido Gebhard
Contributor
June 23, 2019

What I am trying to achieve is that files being uploaded in the Documents (Business Project) are automatically stored into a specific FTP-Folder.

I tried OneDrive but due to permission issues it's not what I wanted.

i.e. In the business project where Documents are being approved etc. I want the file uploaded into ftp after it got the status "approved" before that it should stay within atlassian to save storage and also to keep overview.

 

Is there a solution for this?

1 answer

0 votes
Nic Brough -Adaptavist-
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 23, 2019

You will need to find or write a listener that can detect "issue changed", check if things were attached to it, then copy them over to the ftp service

Leonido Gebhard
Contributor
June 24, 2019

Hi @Nic Brough -Adaptavist- 

 

Thank you. Can you point me to a guide on how to achieve this?

Nic Brough -Adaptavist-
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 24, 2019

Depends on how you want to implement this code. 

Do you want to write an app for yourself or are you thinking to use something like ScriptRunner?

Leonido Gebhard
Contributor
June 24, 2019

I was thinking this was already somewhere in Jira but I just did not notice it.
Now I think I will place a feature request :)

ScriptRunner seems to be a good idea

Nic Brough -Adaptavist-
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 24, 2019

https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-using-a-listener might be a good place to start - it gives you a scripted listener, and a little about field handling, which you can replace with code that does your copy of the attachment.

Leonido Gebhard
Contributor
June 25, 2019

hmm my bad. I should have mentioned that I only have jira cloud :(

I guess there will be no solution on this for the cloud based jira?

Nic Brough -Adaptavist-
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 25, 2019

Ah, then no, Cloud is never going to support that.

Suggest an answer

Log in or Sign up to answer