Changes from parent doc type to child

i created a custom filed with selected data on Project doc type and created the same custom filed on the child (tasks) so what is the right script to inherit all the data from projects to tasks (Project_Farm_Name) to (Task_Farm_Name)

thank you