Steps to Reproduce
Create a simple script to set a user picker field in a behaviour initialiser. This behaviour should be mapped to a JSD project:
Attempt to raise a request. The issue is created successfully:
Change the user's username through the JIRA user management page and try to raise a request again. Despite the user picker field being filled out correctly, the issue can't be created because the field contains the previous username and not the new one.
It's not immediately clear how the old value for the username keeps getting set. Logging statements within the script show that the new username is available, and the field appears to be getting the correct avatar, but the issue simply can't be created because the actual value for the field is incorrect.
Manually typing the user's new username works correctly.
This problem does not occur when issues are created from the non-portal, regular JIRA Service Desk project agent view.