Forums

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

Deleting attachments in Jira Service Management

Daniel Pfeffer
Contributor
October 6, 2023

Dear Experts,

For privacy and trade secret reasons, we are required to remove certain attachments in closed tickets after they have been completed.

Is there a way in Jira Service Management to display attachments in tickets as a total list of all attachments and then delete a selection of attachments (e.g. specific file types) as a total from the system?

I am looking forward to your feedback.
Kind regards

Daniel

2 answers

2 accepted

6 votes
Answer accepted
Vishal
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.
October 6, 2023

Hi @Daniel Pfeffer 

You can use automation issue transition to Done as below & then delete attachments which match specific regular expressions. e.g. (for alpha numeric pdf files "^\\d+\\..+\\.pdf$")

Delete attachments.jpg

Daniel Pfeffer
Contributor
October 6, 2023

Hi vishal 

Thank you for the quick reply. I will try this as soon as possible.

Kind regards Daniel

Daniel Pfeffer
Contributor
October 9, 2023

Hi again

I was able to set up the deletion of attachments for both variants using Regular expression. However, I can only delete one attachment per ticket.


Any idea how I can delete all existing attachments that match this rule?

Regards
Daniel

Vishal
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.
October 10, 2023

Hi @Daniel Pfeffer

Ideally, it should delete all the attachments which match the regular expression, I wonder if the one's which are not deleted may be doesn't match regular expression.

1 vote
Answer accepted
Daniel Pfeffer
Contributor
October 8, 2023

Hi vishal 

Deleting attachments works great for tickets that are set to the "Done" status. But is there also an automation rule to delete attachments from already closed tickets?

Best regards
Daniel

Vishal
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.
October 9, 2023

Hi @Daniel Pfeffer 

Just use manual trigger in the automation & then use jql to identify your issues, you should be able to delete attachments for closed issues as well.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events