Is it possible to catch uninstalling plugin event?

My plugin does some Jira configuration before installation.
I want to save my settings if plugin will be disabled.
And I want to clear my settings if plugin will be removed.

Example below show how to catch both disable and remove plugin events.

public class Uninstaller implements DisposableBean {
    /** Called when the plugin has been disabled or removed. */
    @Override
    public void destroy() throws Exception {}
}

I want to catch only remove event. Is it possible?

1 answer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Latin America

Boas vindas e apresentações!

Olá pessoal!   Sejam bem-vindos(as) ao fórum da Comunidade Atlassian! O community.atlassian é uma ferramenta para incentivar e fortalecer a comunidade Atlassian, que até então tinha s...

46 views 2 0
View post

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