Create new Ticket when opening Entity

Do you have any tips what would be the easiest way of always creating automatically a new Ticket, when in the entity search window you lookup and select an entity which has already an active ticket.

Maybe in your Ticket Entity Changed event you can add automation for Add Ticket and put constraint only if current ticket is status Unpaid or other than New