Wrapping a Table-Plus macro around a Report Macro

Similar to: https://answers.atlassian.com/questions/141319/table-plus-sorting-arrangement-feature-not-working-when-used-with-detailed-summary-macro-confluence?page=1#240513

I am trying to get a table-plus macro to sort a report macro

Confluence 5.3.

Table plugin 6.1

Report Tabel Macro

My code is a Table-Plus macro wrapping a Report Table macro.

7 answers

1 accepted

What is your problem/error message?

If you are interessting, you can also try to use Tableenhancer for Confluence (see https://marketplace.atlassian.com/plugins/com.tngtech.confluence.plugins.tableenhancer) which is completely open source and able to be used with any table, even generated ones ;)

Hmmmmm. I'm using this in a template and getting two errors

On the preview:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

On the page itself:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.firstRowMustBeHeadingToSortTable

The first row of the report is blank, and every second row is blank as well.

Which Confluence version do you need since I can't reproduce it with v5.2.3.

(Screenshot of report macro wrapped into tableenhancer and initial sorting on column 3)

Sorry. Confluence 5.3. Scaffolding 5.0.10. Reporting 4.2.3.

Unfortunately, my example works, see

May you give me an example source code (e.g. using Confluence Source Editor)?

Hmmmmm. I'm using this in a template and getting two errors

On the preview:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

On the page itself:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.firstRowMustBeHeadingToSortTable

The first row of the report is blank, and every second row is blank as well.

Ahhh. I had the 'new column' box ticked on my first table column. Works now.

As a feature request, I would love to be able to specify the widths of each column as a % of the screen width.

Great :)

I have added the feature request, see https://tngtech-oss.atlassian.net/browse/TABENH-10. Do you have serious problem with the column width? Usually this should work automatically to max 100% of width and I am sure about the use case and/or priority?

I am using this as part of a report on 'child' pages. As a result, when the page tree is empty, the report looks awful - quite shrunk down. As the tree gets populated, it looks better.

If there are some abnormal fields, the table can look bad too.

Thanks very much for your help.

One more issue. When the table is empty, I get the following error:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

It would be nice to avoid this.

Hi Ken,

this is currently intended. How often do you have a case like that?

Cheers,
Andreas

It happens. My work around is to put an empty 1 line, header only, table in the 'report empty' macro. Good enough for now. Thx.

Fair enough, if you have further problems, don't hesitate to contact us via opening an issue on https://tngtech-oss.atlassian.net/browse/TABENH.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

346 views 20 10
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