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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

User macro with array type of parameter

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

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
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

473 views 6 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you