Is it possible to display an entire table from a page properties macro in a page properties report?
Asked by Marjorie D:

I created a table with several lines inside of a page property macro.

I would like to see all the lines from this table appear in my page property report on another page. Is it possible?

For now I only see the content of the 1st line below the header of the table.


Answers:
author: Shannon S
body: Hi Marjorie,

This isn't the intention of the Page Property macro. I would recommend using [Excerpt Include](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) instead.

Have you seen this macro before, and does it work for your requirements?

Regards,

Shannon

comments: author: Gerrit Berberich
body: Hello [@Shannon S](/t5/user/viewprofilepage/user-id/510046),

we actually stuck in same/similar requirement:

We wanted to use the Page property macro to get columns of a table:

A Table contain several rows and columns and one column is defined as task column and on row level we will add checkboxes and tasks with confluence functionality.

In difference to the task report we want to show not only predefined task fields by confluence (Allowed columns are description, duedate, assignee, location, completedate, labels) but also all the columns left and right of this column and flexible table to list the task in its context.

<br />

With page property and report we are able to get the first column of the table of one page (and other pages) but only the first column and not a specific one.

With excerpt include / include macro it's quite similar and we only can use it if we separate all rows and put it in the page propery or include container.

Is there another way?

Thanks


author: Shannon S
body: Hi Gerrit,

Currently Page Property macro only pulls one column/row:

* [CONFSERVER-40835](https://jira.atlassian.com/browse/CONFSERVER-40835)

What you're asking sounds similar to the [Task Report Macro](https://confluence.atlassian.com/doc/task-report-macro-590260009.html). However, you cannot currently customize columns with that. I raised a request for this a while back:

* [CONFSERVER-38287](https://jira.atlassian.com/browse/CONFSERVER-38287)

For clarity, the limitation in Page Properties macro is discussed here:

* [Why Page Properties Report macro only pick up first row of Page Properties macro's multi-row table.](https://community.atlassian.com/t5/Confluence-questions/Why-Page-Properties-Report-macro-only-pick-up-first-row-of-Page/qaq-p/380702)

Let me know if you have any questions about it!

Regards,

Shannon


author: Natalie Paramonova [Stiltsoft]
body: Hi Marjorie,

If you need to pull multiple tables with multiple rows (both manually created or generated with the help of the macros outputting tables), you can use the combination of the [Table Excerpt Include](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community) and [Table Transformer](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Transformer+macro?utm_source=atl_community) macros.

[Table Excerpt Include](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community) provides an ability to pull any tables from child pages, from specific pages, from pages by labels and more. [Table Transformer](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Transformer+macro?utm_source=atl_community) merges all the tables in one.

The workflow may be as follows:

1. Insert the Table Excerpt macro, set the Excerpt name parameter, and place the tables (or the macros outputting tables) within the macro body on every page.

![2019-03-28_18h09_44.png](https://community.atlassian.com/t5/image/serverpage/image-id/50787iD291E002F697A143/image-dimensions/525x291?v=v2 "2019-03-28_18h09_44.png")

2. Add the Table Excerpt Include macro on the summary page, specify Excerpt name and select an appropriate Excerpt source.

![2019-03-28_18h22_47.png](https://community.atlassian.com/t5/image/serverpage/image-id/50789iC530E148891F6790/image-dimensions/569x364?v=v2 "2019-03-28_18h22_47.png")

3. Wrap the Table Excerpt include macro in the Table Transformer macro, use the default presets or custom SQL queries to merge all the tables in one.

![2019-03-28_18h11_16.png](https://community.atlassian.com/t5/image/serverpage/image-id/50786i0D9F019AF087E16F/image-dimensions/431x195?v=v2 "2019-03-28_18h11_16.png")![2019-03-28_18h27_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/50788i179B39A069055BA2/image-dimensions/570x368?v=v2 "2019-03-28_18h27_21.png")


author: Claudia Oakley
body: I have a workaround for this as I had the same issue and we don't have other macros available.

1. Add the Page Properties Macro and ID
2. Insert a 1\*1 Table
3. Inside the cell Paste the table you want to display
4. Save
5. On a different page add the Page Properties Macro (use the label and table id to find your table)
6. Preview and Save
7. Save your page :) You can see all the columns and rows in your table!!


Tags: confluence-server

macro

page-property

server