Set assignee of certain subtasks based on custom field

Hey there,

I would like to automatically assign certain subtasks of a task to a person which is set in a custom field. Additionally, if this is possible is it possible to only assign the person once the subtsak is no longer blocked by another one?

Appreciate your help.