Hey guys, i'm trying to get user login on JIRA using ScriptRunner like:
def jiraUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
but the return is XXXXXX(xxxxxx) and all i want is XXXXXX.
So, how can i get only the XXXXXX?
OBS: def jiraUser = ComponentAccessor.getJiraAuthenticationContext().getName(); returns XXXXXX(xxxxxx) to.
OBS2: I don't want to user replace things to remove (xxxxxx), it need to be something simple.