Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

PluginUpgradeTask in Jira doesn't execute


I am writing a Jira server plugin where I have a requirement to do a particular execution while plugin is installing. I have used PluginUpgradeTask concept, but this is not being executed on plugin deployment. Below is my code.

I am unsure what mistake am I doing.

public abstract class AbstractUpgradeTask implements PluginUpgradeTask{
public String getPluginKey() {
Bundle bundle = FrameworkUtil.getBundle(AbstractUpgradeTask.class);
return OsgiHeaderUtil.getPluginKey(bundle);
public class LoadConfig extends AbstractUpgradeTask {
private final PluginSettingsFactory pluginSettingsFactory;

public LoadConfig(PluginSettingsFactory pluginSettingsFactory) {
this.pluginSettingsFactory = pluginSettingsFactory;

public Collection<Message> doUpgrade() throws Exception {
System.out.println("=============================================> "+doUpgrade);

public int getBuildNumber() {
// TODO Auto-generated method stub
return 1;

public String getPluginKey() {
// TODO Auto-generated method stub
return null;

public String getShortDescription() {
return "This upgrade task";

Best Regards,


1 answer

Hi @KL Kumar 

It seems you're not returning anything from the getPluginKey() method. As the SAL tracks successful upgrades, at a minimum it will need to to know both the plugin key and build number.

I'd also recommend continuing this discussion on the Developer Community ( where they'll be better able to assist with queries such as this.

Hi @Gareth Cantrell 

I tried returning the plugin key for getPluginKey() method. But no luck.

I raised this in developer community too and waiting for some help from the community.

Thank you!

@KL Kumar I was taking a look around and found this answer in another thread about plugin upgrades.

It points to a Git repo with examples, maybe it'll give you some insight. 

Suggest an answer

Log in or Sign up to answer

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