The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Deleting Attachments via Automation using Regex

Atlassianist
Contributor
April 3, 2023

Hallo, 

we would like to delete attachment of mail signatures using regex:

^BrandEins.*\.(jpg|JPG|gif|GIF|png)$

This should detele files containing the texte BrandEins im Filename. 

If I test it with a REGEX editor, the example filename matches:

"BrandEins_BeraterUnternehmen2023_Logo_DE_basic_1ca9ce0c-96b4-4cff-ae1b-03f1224a87f6.png"

Despite of it, the automation does not work ...

 

I have made it as follows:

IF "ISSUE IS COMMENTED" THEN "DELETE ATTACHMENTS SELECTIVELY"

(See REGEX)

image.png

Is there still any mission point?

Would it be possible to make this manually executable?

Best regards

Istvan

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kai Becker
Community Champion
April 5, 2023

Hi @Atlassianist 

welcome to the community. Could you post the log of the automation rule execution?

Not quite sure what the problem is, because your syntax looks correct.

You could also switch the trigger to manual. That would make the rule available in each issue, right next to the workflow drop down.

The other option would be to use a scheduled trigger and rule the rule on in a certain interval.

TAGS
AUG Leaders

Atlassian Community Events