Retrieving the logged in user

Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2012

Hi,

How to get the current logged in user from the JIRA Java API?

Many thanks,

Pablo

1 answer

1 accepted

0 votes
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2012

There are a bunch, for instance, if you are in your Action controller classes you can just use

getLoggedInUser();

Or alternatively:

ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events