Upgrading from 4.1.1 to latest: problems with User class in custom plugins

I'm upgrading from Jira 4.1.1 to latest version.
I'm doing my first step modifying the source code of our custom plugins but I'm not able to get rid of the "deprecated" warning about the User class.

If I did no misunderstanding, I'm using the SDK 6.2.8 and in my my pom.xml I've the dependencies from jira-api-4.4.5 and jira-core-4.4.5.jar
So I modified the deprecated com.opensymphony.user.User to the new com.atlassian.crowd.embedded.api.User but, when I'm going to check classes extending  AbstractJiraCondition I have the shouldDisplay method still using deprecated com.opensymphony.user.User as described here in docs

Where am I wrong ? Am I missing something ?

Thanks for replying

1 answer

This widget could not be displayed.
Aleksandr Zuevich Community Champion Sep 15, 2017


I suppose you should update your jira-api and -core dependencies at your pom.xml to the latest.

But they depends on jira.version tag.

In my pom.xml I have:


And in jira.version tag I set:


that is the version through which I'm trying to rebuild the old plugins.

I got the pom.xml executing atlas-create-jira-plugin

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

217 views 1 3
Join discussion

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