Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove all attachments in one shot from one task?

Tigran Kasparov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 14, 2020

I uploded by mistake the zipped file. Which is wrong. 

The the zipped folder were 1000 files!!!

All files were attached to task.

To remove them I have option to delete them one by one.

It will take long time.

How I can delete all attachments from one task in one shot?
 

Thank you,

1 answer

0 votes
Sachin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2020

Hello @Tigran Kasparov ,

Currently this is not possible, see JRACLOUD-11297 

Here are your options:

1. Clone the ticket (uncheck clone attachments option) and delete or close your previous ticket

2. You can try one of the solutions provided in this post

  • Open browser developer console
  • Paste:

  • while (true) { $('.attachment-delete a').first().click(); await new Promise(resolve => setTimeout(resolve, 3000));}
  • Press enter
    Screenshot_3.png
  • Click on the confirmation button. Wait 3 seconds. Click on the next confirmation button.

3. You can use RestAPI to delete the attachments see - Delete attachment 

Best,
Sachin.



Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events