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

0 votes
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
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,653 views 18 21
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