Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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").emailAddress
I figured it out. Automation Rule was based on JQL search. Then from the issues, found by JQL in Automation Rule, I tried to get email address from the Custom User Picker Script Field. And it's known behaviour - script field values are available in search results only after the re-index of issues. So, it was just needed to re-index the project/Jira.
Now I get all the required data including emailAddress from the Custom User Picker Script Field in Jira Automation. Everything works as expected without any issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.