I mean how to directly set a user as login.
I just want to use the user to create issue operation on background.
Scenario like: remote site request to create issue, the plugin will recive the request and create issue on jira.
Remove site could not to be modified with the request headers nor use the JIRA Client APIs.
Current problem is :request comes, when plugin try to add issue,remote site recieve errors with "anonymouse do not have permission to create issue" reported.
JiraManagers.getJiraAuthenticationContext().setLoggedInUser(user);
Thanks so much for your reminding.
But the Jiramanager interface is depracated already.
Now we can use ComponentAccessor:
ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(user);
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.