Auto ticket department on edit