Retrieve the value of a field to assign it to another

I would like to retrieve when selecting a parent task when creating a child task, the number of a parent task to put it in a child task field. Is there a way to do this from the view side please? The field in question is « parentTask » from the project module

See post below.
It did not work ?

yes it worked except here i just want to say that field1 of my view (parent task fields) and equal to field2 (task number fields)