Create new automation for the case below:
If task or story has more then one linked BUG automatically change that story/tasks status as reopened.
How check quality of linked issues and their type
Here's an example workflow that may work for you (change In Progress to Reopened):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.