I want to know how to automatically purge the attachements which are 30days old?
I have checked in the attachement settings but it just gives me the location of the directory where attachements are stored.
Please help its urgent.
I don't think that this is possible. The only way to delete from jira is inside every issue, and your user need to have the permissions to do that.
Other way could be erasing the attachment from the directory but this won't be automatically. You can search in Plugin Exchange to see if there's a plugin for this.
Yes, pretty much the same technique. Here is an example of getting the list. You might want to use --dateFormat to get the date in form easiest to handle in your script. I just ran this over 3000 issues myself for another purpose. all is a filter in this example. Filters should be used if number of issues > 1000 so CLI will do paging.
--action runFromIssueList --filter all --common "--action getAttachmentList --issue @issue@ --file attachmentList.csv --outputFormat 999 --append" --continue
I should add that for either JIRA or Confluence, if you edit the resulting csv file that is produced to reduce it to just the attachments you want to remove AND remove the columns that are not needed by the remove command, then you can use runFromCsv to actually do the deletes without any scripting.
I have the same issue, I have some projects jira, where i would like to delete the attachment of all closed issues. Can you give me the steps please. there is no time specific, all i need is if i can give a project name all the closed issues should remove attachments
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
I am the product of AIM. I can hear that door swinging open and closed in my mind with absolute fidelity. I’d recognize that ding anywhere. At 15, as I typed away into AOL IM, I never imagined that ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs