Rebased version of #15629 - prevent setting assigned_to without setting assigned_type
user_id
created_by