Hi Community,
Currently I´m using this line in my body mail to set the "custom_field" value <% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("MyFieldName")) %>
I want to set another custom field but in this case of "User Picker" type.
Do you know how can I set it?
Regards.
You can do the same but on the end try do get Display Name of user.
So you can achieve this by this line of code
<% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("MyFieldName"))?.getDisplayName() %>
it will work on single user picker. If you have multiple values in this picker then it will be a little bit more complicated.
Welcome to the community!
Please share some details on what module you are using from script runner to get some insight into what you are trying to achieve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.