When writing a plugin for JIRA, how do you get a user, or just their username, given their email address?
It seems that you're supposed to use the findUsersByEmail method in the UserSearchService interface
https://docs.atlassian.com/jira/7.0.2/com/atlassian/jira/bc/user/search/UserSearchService.html
But how do you get an instance of this class? Or a singleton of it?
To get most of class instances ComponentAccessor
UserSearcherHelper userSearcherHelper = ComponentAccessor.getComponent(UserSearcherHelper.class);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.