is possible to write a user macro to repeat table/fixed number of column headers& rows inside a page


is it possible to write a user macro or any add-on supports to repeat table of fixed number of columns headers and fixed number rows inside a confluence page.

with this I should able to use { <macro tittle> , to repeat my fixed table format in multiple places, wherever I add requirements in my page and will add the contents into it accordingly.

Please let me know is it achiveable by writing user macros or any add-ons supporting this feature?

- Manju


1 answer

Not sure of your use model, but I will give you some suggestions. First, I don't know of anyway to do exactly what you want with a user macro or plugin -- all models I see take some input, then render content on page display. I haven't seen any that would basically replicate keystroke entry, and would operate fire-once.

But here are some suggestions that might work, depending on your use mode.

  1. If this a conisistent syle of report, create a page template with blank formatted tables. Then you would only need to add data.
  2. Create the table in Excel, the cut and paste each time. Of course, formatting would be lost, such as header colors, AND it adds <col> tags which inhibit sorting.
  3. Install the source editor. Then you could create a blank table with whatever standard fields and formatting you want. Then copy out the table code (from source view) to a text file. You can then paste it as many times into as many pages as you want.
  4. Write user macro that buildes a table as you want, based on the input of a comma deliminated set of values. It would only render the table on page display, but not while editing. However, you can construct the table how you want, with formatting set to the cell level (extra credit, just uses class statements, and do the styling with CSS). You can package a user macro as a plugin if you want.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,081 views 17 14
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you