Old java class are not working on JIRA 5.0

we are using few java class like com.opensymphony.user.UserManager in Jira 4.3.4 to fetch the user information. But when we upgrade the version to JIRA 5.0, class (com.opensymphony.user.UserManager) is not working. Please let us know, class name to
perform the user information functionality in Jira 5.0. Thanks.

3 answers

Please tel me that how can i get object of DefaultUserManager class. Because this class implemented UserManager interface

By replacing your use of opensymphony with embedded crowd. As we said before, it's not a flat replacement, you may well have to modify your code to deal with it. DefaultUserManager is implemented in Crowd, and it's not that different from the opensymphony one, but you will need to work through the changes for yourself.

We can't feed you any code really. It's far better that you understand what you're doing than just blindly copy something, but more to the point here, you haven't told us what you're trying to do with user management. Without context, random snippets of code are likely to be worse than useless to you.

0 votes

Um, you need to recompile a lot of stuff against the new libraries.

It really is not as simple as "use new libraries", you're going to need to redevelop some stuff separately. (Note in many cases, really all you need is "update pom.xml and recompile", but not all of them, especially any user related stuff)

The opensymphony stuff has been replaced by embedded crowd now. There aren't many one-to-one swaps you can't just replace opensymphony.user.usermanager with crowd.usermanager, it's just not that simple.

Can we have any crowd API to develop and recompile our staff?

In a nutshell, can you tell me, how can I get user information in Jira now?

Radu has given you the link I was reaching for. You'll need to follow that. I can't tell you how to get user information (either from Opensymphony or Crowd) any better than the documentation.

Please tel me that how can i get object of DefaultUserManager class. Because this class implemented UserManager interface

0 votes

Most methods are available by Userutil or UserManager.

Use ComponentAccessor.getUserUtil() or ComponentAccessor.getUserManager() to access them.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,946 views 19 22
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you