I am using the getLoggedInUser() method and saving the object it returns to a variable. However, instead, I want to specifically get the name of the logged in user, as opposed to the entire object. Is there a way to see the entire logged in user object listed out, or specifically pull bits of information from it? A hypothetical example might be getLoggedInUser().name to pull the name.
Hi,
Welcome to the community.
When you use getloggedinuser() you get an ApplicationUser object so you can use some methode from this class
https://docs.atlassian.com/software/jira/docs/api/7.0.6/com/atlassian/jira/user/ApplicationUser.html
Oh awesome, thanks so much! It looks like it includes the getName() method so that should work for what I'm looking for. It would probably be getLoggedInUser().getName() correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes getLoggedInUser() will give you the user's username.
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.