Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

User macro with array type of parameter

Robin Helgelin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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_
Atlassian Partner
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