You can create a supervisor rule to update any tickets that were updated in the last 30 days, however, if you would like to set a value for all the tickets in your helpdesk, we would recommend exporting all the tickets from the helpdesk and make use of APIs to update the ticket. API to update a ticket can be found from here:

https://api.freshservice.com/v2/#update_ticket_priority