Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Deleting attachments in Jira Service Management

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

5 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.
Oct 06, 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

Hi vishal 

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

Kind regards Daniel

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.
Oct 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

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.
Oct 09, 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events