On this page
Use case
Configuration
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Scheduled trigger
Add a trigger
Select Scheduled trigger
Schedule the trigger once a day.
Interval
Run the automation at 3:00 am as it is preferable to make this operation outside of business hours.
JQL Selector
Add a Selector
Select JQL selector
JQL Query
Use the following Expression:
status WAS closed BEFORE -30d
Boolean condition
Condition
Boolean condition
Expression
Use the following expression:
%{selector.issue.attachment} != null
Update field action
Add an Action
Select Update Field
Select Attachments (current attachments will be replaced) and update to value returned by parser expression.
Parser expression
Write the in the expression editor two quotation marks without text "" in Advanced text mode.
Related use cases
If you still have questions, feel free to refer to our support team.