Hello,
In ScriptRunner Fields I created Custom Script Field with User Picker (single user) template.
Field just returnes the user from the other field:
def user = issue.getCustomFieldValue("Custom Field Name")
if (user) {
return Users.getByKey(user)
}
When I try to get email address of the user from this field in ScriptRunner Console, it works correctly:
Issues.getByKey("issue-key").getCustomFieldValue("Custom User Picker Field").emailAddressBut when I try to get email address in Jira Automation Rule, it returns nothing.
I printed the field value into the log in Jira Automation:
It prints "{active=true}" instead of ApplicationUser info.
At the same time standard Jira User Picker fields work as expected in Jira Automation.
Is there any way to get emailAddress and other user info from the ScriptRunner User Picker Custom Script Field in Jira Automation?