For run scrip
First, I have installed the app "ScriptRunner".
Then, setup the post-function.
But, how to write the code to download the attachments?