Hello,
I have created a copy of productive JIRA server and decided to remove all attachments in order to keep the space.
Pretending to be a smart admin I simply applied rm -rf command to the attachments folder.
After that I restored only attachments for 1 project I really need.
But it was not very good for JIRA Health.
Jira reported 105472 missing attachments.
Unfortunatelly I have not found any scripted solution in answers.
That is why I decided to ask for JIRA script which will fix it.
--
Viktor