I am developing a plugin for JIRA, I thought if there is any method to get current issue object. As we can get current logged-in user using:
User loggedInUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
I am currently passing issue-key into the servlet to get the issue, like this:
String issueKey = req.getParameter("issue"); Issue editissue = ComponentAccessor.getIssueManager().getIssueObject(issueKey);
Is there any method to get current issue?
Community moderators have prevented the ability to post new answers.
A servlet doesn't have an issue context. So you will have to pass it as a parameter. What you are doing is just fine.
good to know that, Thanks.
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.