Ticket Conditional Logic

I would like to be able to set a conditional logic where if the category of a ticket is X, you can’t change to Status “Closed” until Property Y is entered.