Dear all,
I have a v1 plugin that updates issue; in order to do that, the API (getIssueService().update) requires the user to be logged in. Therefore, I used getJiraAuthenticationContext().setLoggedInUser(updateUser).
The problem is that after some time, the user sessions in JIRA are left over with a lot of "updateUser".
I cannot find an API to perform logout or session clearing.
Please help!! Thank you.
Best regards,
TimY
Community moderators have prevented the ability to post new answers.
have you tried ActionContext.getSession().invalidate()?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ActionContext.getSession() is static like System.getCurrentTimeInMilliseconds(). It's always availiable in Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Had the same problem: Using Atlassian Bot Killer to help maintain the amount of sessions.
This is a workaround, but I don't think they are planing to fix the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using the REST API?
If you are there is a bug. There should not be any session created:
https://jira.atlassian.com/browse/JRA-27047
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using the REST API?
If you are, there is a bug. There should not be any session created:
https://jira.atlassian.com/browse/JRA-27047
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.