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

Can I develop a macro only available depending on Confluence Version?

Dennis Andersen
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.
November 23, 2015

I have a plugin that supports a wide range of Confluence versions. In the plugin I have a status updates-macro (a function no longer available in confluence 5.9) that I want to configure so that it's only available for certain confluence version. So if I install the plugin on Confluence 5.7 the macro will be available, but if I install it on Confluence 5.9 it won't be. Is there any way to configure a macro this way, maybe similar to adding conditions to web-items.

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Steve Gerstner [bridgingIT]
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.
November 23, 2015

Hi Dennis,

 

no, I think, you can't. But...

 

You can use a component or a BundleActivator (if you are firm with OSGi) to disable the module if you are on confluence 5.9 or higher.

Then the module is listed as disabled in the upm and you can't chosse it from the macro browser.

Regards

 

Steve

TAGS
AUG Leaders

Atlassian Community Events