Hi @srizkalla,
Welcome to the Freshworks Community!
I see you are looking to set an automated ticket closure after a ticket is set to resolved for more than 7 days; Please use the Time Trigger Automation available from the Growth Plan in Freshdesk to achieve this.
Please navigate to Admin -> Automations -> Time Triggers, and execute the attached flow -
You can define your hours since resolved based on how long the ticket has to stay resolved, let's say if this is 2 days, it should be 48 hours. In your case it would be 24 hours * 7 days = 168 hours.
Quick Pointer: Since Time Triggers run every one hour, this might keep running and send out emails to your agent in bulk; please keep in mind to have the lesser than 170 condition to avoid endless emails being sent out as a reminder; I hope this helps!
Cheers!