User macro with array type of parameter

Robin Helgelin March 9, 2020

I'm currently working on a user macro for formatting a header of a document. This header should contain a list of different times this document has been approved.

This list will be dynamic per document. How do I go about and make such a thing?

I was thinking that it might be possible to add "sub-macros" for every line, that uses javascript to inject themselves in the main formatted table. But not sure how that will be handled when printing, etc.

1 answer

0 votes
Sven Schatter _Lively Apps_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 9, 2020

With enough fiddling this might be possible but it sounds like you're pushing the limits of what user macros should be used for. If you're already doing complicated stuff like that with user macros the jump to writing real Confluence macros might not be that big for you. The tutorial for creating a Hello World macro is quite simple and from there you can work in Java which is much nicer: https://developer.atlassian.com/server/confluence/creating-a-new-confluence-macro/

You can also check out more complex Macro tutorials here: https://developer.atlassian.com/server/confluence/macro-tutorials-for-confluence/

Cheers,
Sven

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events