Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use PluginUpgradeTask or what should I use instead?

Herpen Derpen
July 20, 2020

I'm trying to perform certain actions after plugin is installed. I'm familiar with ActiveObjectsUpgradeTask, but since this action has nothing to do with database I'm looking for a more elegant solution. I found an article regarding PluginUpgradeTask, but it's heavily outdated - when I try to use component element in atlassian-plugin.xml, I'm getting following error:

atlassian-plugin.xml contains a definition of component. This is not allowed when Atlassian-Plugin-Key is set.

Linked help document describes that I shouldn't be using component element and use @Component annotation instead. This of course doesn't work.

 

How do I make PluginUpgradeTask work OR what should I use instead to perform actions right after my plugin is installed?

 

1 answer

0 votes
Deleted user
November 4, 2014

I have 1-2 users seeing this too... guessing its a bug?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events