there is a feature called "Bulk change" that you can use to do exactly this : from the list of tickets, select all the tickets and apply a change (like a status change).
You can have a look at the documentation here : https://support.atlassian.com/jira-core-cloud/docs/edit-multiple-issues-at-the-same-time/
Let me know if this helps,
Assuming the requirement covers something that needs to be done in an automated fashion it might be worth the time to develop an external tool/script accessing REST API:
There is a endpoint available transitioning issues:
An example is to be found in Community (older but still valid).
Calling all Confluence Cloud Admins! We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events