Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

possibility to disable plugin modules?

Alex Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2014

Hello,

I'm developing a custom plugin with provides a set of reports, workflow-conditions, validators, listeners ... etc. Some of these modules are configured throug a properties file in JIRA_HOME, and it would be useful to reload some of them by disabling and enabling the module, not the whole plugin.

How can I mark a module (in atlassian-plugin.xml?) to have the Enable/Disable button in jira plugin interface?

If possible, how can I make a module disabled by default when installing a new version f the plugin?

Thanks

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2014

To your 1st question: I think all module types except component and component-import can be disabled and therefore have the Enable/Disable button visible. I don't know how to hide the Enable/Disable button.

To your 2nd question: You can disable a module by default in your atlassian-plugin.xml by adding state="disabled" to it. Some JIRA system plugins do that:

<web-panel key="show-whats-new-flag" name="Flag show what's new" location="atl.header" state="disabled">
    ...
</web-panel>

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2014

By default, all modules can be enabled or disabled from Admin interface. In order to keep them disabled, try using JiraPluginManager at startup.

TAGS
AUG Leaders

Atlassian Community Events