Whenever the following post function gets executed, the parent's issue priority will be set to the current issue's priority.
Add the Update or copy field values post function to the desired transition or create a new transition.
Choose Parent issue
Choose Priority
In the popup, choose Copy field value from current issue
Update or copy field values