Hi everyone,
I am using the wonderful Script Runner plugin and have a post-function set up to clone an issue into another project. I had wanted to NOT copy any of the attachments to the new issue, or alternately delete all the attachments from the new issue.
My first thought was adding something to the "Additional issue actions" section at the bottom for groovy script that will delete all attachments, but I'm not sure about what to write here or the syntax.
Does anyone know how to delete all attachments on an issue in Groovy?
Thanks in advance,
Will