I did just read the slides at http://www.slideshare.net/GoAtlassian/atlascamp-2010-making-confluence-macros-easy-for-the-user-dave-taylor
page 48 shows an example how to set static enum parameters
<parameter name="someenumeration" type="enum" required="true"> <value name="one"/> <value name="two"/> <value name="three"/> </parameter>
I would like to fill the values with dynamic values (eg. a list of jira projects which is retrieved via applink). Is that possible somehow?
Thanks in advance,
Lars
Community moderators have prevented the ability to post new answers.
Here is how I solved the problem.
The trick is to just use jQuery. Don't think of this as a Confluence macro creation problem. You can do pretty much anything you want, create or delete elements, create hidden parameters with beforeParamsRetrieved, etc.
Bump. I've been struggling (lots) with AJS, configuration files and feeling pretty overwhelmed for what seems like a simple request. Any success from any of the posters here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Marc Brazeau , Did you find the Solution, i have the same problem: https://answers.atlassian.com/questions/10416526/answers/10416959 regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope. Ended up doing something else instead (not even using a macro or plugin), completely outside of Confluence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Hatem Ounis , Did you find the Solution, i have the same problem: https://answers.atlassian.com/questions/10416526/answers/10416959 regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lars Kleen , Did you find the Solution, i have the same problem: https://answers.atlassian.com/questions/10416526/answers/10416959 regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have a similar question. We have a macro which reads a configuration file when it is rendered. If we add a new configuration to the configuration file, we would like the configuration to appear as a parameter choice in the macro properties panel.
Are macro parameters persisted anywhere else besides atlassian-plugin.xml? Or when is atlassian-plugin.xml read? Are there events associated with atlassian-plugin.xml that one can handle in code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.