It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get current JIRA 'issue' inside a servlet, plugin development?

moxin Jan 30, 2013

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?

1 answer

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Go2Group] Community Leader Jan 30, 2013

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.

moxin Jan 31, 2013

good to know that, Thanks.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

86 views 3 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you