Background:
I have started with programming Confluence Macros.
I have added the <xhtml-macro> tag to my atlassian-plugin.xml
I have created a Java class that implements the Macro Interface.
The Macro is working so far.
What I want to do and haven't found a way to do so far:
(1) I want to dynamically add parameter values to an enum based parameter depending on what is the content of the confluence page the user is currently working on.
(It doesn't necessarily need to be a enum based parameter, but there should be values to choose from.
(2) I want the user to be able to dynamically add new parameters. This kind of feature is already available in the content by label Plugin, where you can add as many filters as you like.
What is the right way to approach this?
Thanks you!