In the customized plugin that we created , we need to fetch and pass currently logged in user values to populate in front end screen after some validation.
We are getting the current logged use through JiraAuthenticationContext in java class as there are no direct remote JIRA APIs for fetching these values. And hence we need to pass these values as the response body.
How to do that? In spring we have @ResponseBody annotation, is there any way similar like this to achieve this functionality?