Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
There is a possibility to limit the attachments imported with the incoming script. The following line works fine.
issue.attachments = replica.attachments.findAll { attachment -> attachment.filename.endsWith(".pdf") }
When we only want to accept .pdf and .txt I changed it into
issue.attachments = replica.attachments.findAll { attachment -> attachment.filename.endsWith(".pdf",".txt") }
unfortunately this gives an error. Is it possible to define multiple file extensions?