Hi,
I would like to find the unique name for "member name" field.
In some places it written differently.
Cohen Moshe
mcohen
mcohen(Cohen Moshe)
and else..
Thanks,
Daniel
Hello @Dan27
def userpickr = issue.getCustomFieldObject(userPickerField)
returns you ApplicationUser object for user.
Here described methods that you can use to receive info.
FYI getDisplayName() may be not unique, because you may have people with same first name and surname.
I would recommend use
userpick.getKey()
This is returns you unique key for user.
ApplicationUser itself :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are you trying to achieve?
Can you please provide full case scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What type of field is this "member name"?
Also. I am misunderstanding the question. You seem to be talking about the content of it rather than the name of the field. Are you asking about the field or the content?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User Picker (single user)
I need the content of this field, I have one member that called in a different member name, like:
Cohen Moshe
mcohen
mcohen(Cohen Moshe)
I want to take only the unique name of this member.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so you have three entries in this user picker for one person?
That means they have three accounts which match the rules the user picker is using to select them. I would work out which account they actually use, and disable the other two (although you could just amend them so they no longer match the user-picker rule that selects them)
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.