If it’s assigned and open, how do you know it’s ready to be closed before entering the topic? It looks like you’re using tags for status… does one person add a “completed” tag and someone else closes it?
There is an existing unassign on close setting that’s disabled by default… would it work to enable that and close the topic, which would then trigger the unassign?