How to return any values as response body from controller class

Sandesh TM
Contributor
September 29, 2023

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events