I am using an assets lookup to a User field in order to return a user from Assets:
{{#lookupAssets}}{{#first}}{{attributes."Assigned To"}}{{/}}{{/}}
This is returning: JIRAUSER74326
I then try to access this from a script runner script and I get:
com.adaptavist.hapi.platform.exceptions.InvalidUserNameException:
No user exists with the username 'JIRAUSER74326'
I have tried
{{#lookupAssets}}{{#first}}{{attributes."Assigned To".name}}{{/}}{{/}}
{{#lookupAssets}}{{#first}}{{attributes."Assigned To".accountId}}{{/}}{{/}}
these both return blank.
My ultimate goal is to set a custom user field in an issue from a user field in assets.
Thank you.