Set the assignee based on a User Picker field. If this field is empty, set the reporter as assignee.
Add the Update field based on rules to the desired transition or create a new transition.
You can add the post function to the Create transition of the workflow so that the assignee is automatically set every time that an issue is created.
Choose Summary
Although this field is not relevant in this use case, it is required to choose one. We will set it to Summary.
Select Assignee
Select Logical expression
Use the following expression after replacing the field code %{issue.cfaaaaa} with the one for the User Picker field.
%{issue.cfaaaaa} = null
Enter the following field code.
%{issue.reporter}
%{issue.cfaaaaa} != null
Enter the field code for the User Picker field.
%{issue.cfaaaaa}
Update field based on rules