Hi there,
Hope somebody can help as I am struggling to get an automation to work. It's not a particularly tricky one; when an issue transitions to done, if a certain field is not empty, delete all attachments that start with the string "Data Privacy".
Automation triggers fine, if condition matches but the attachments are not deleted.
I've tried variations of the regex as I am not a regex master by any stretch but online tools suggest they would all work:
I've output the names of the attachments in a comment using another Jira automation to try and prove that the automation is seeing the filenames as I see them:
I've set the rule to delete all attachments instead and that did work.
Here's the audit log of the last run:
Any, and all, help greatly appreciated.
Many thanks
My guess it that the regex for the file name needs to match the whole name, so try using this one and see if it works:
Data Privacy.*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mikael Sandberg looking to do something similar where we automatically delete .har files on ticket resolution in response to Hackers Stole Access Tokens from Okta’s Support Unit – Krebs on Security
Also not a regex expert ... but our expectation was that this would work: \.har$
Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jeremy Drexler It looks like the delete attachment step is not converting the $ regex correctly. I just tested and .*.har seems to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.