Inserting Excerpt with diagram
Asked by Djukic Haris:

Hi all,

Is there a possibility to include a chart or diagram macro within an excerpt macro?

The idea is to define a diagram that can be used afterwards with the include excerpt macro on another page and to have one dedicated page with just diagrams that come from the different excerpt macros.

Thanks in advance,

Haris


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Djukic Haris](/t5/user/viewprofilepage/user-id/4968681) ,

As a representative of the Stiltsoft team, I can suggest the following workaround with the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app: reuse your source table as many times as you need using the [Table Excerpt/Table Excerpt Include](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macros and then aggregate/visualize the reused table on other pages (spaces). We have a wide range of macros for this purpose, for example, you may check the [Chart from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro.

It's very convenient when you need to create a dashboard based on one source. You don't need to copy/paste this table manually several times, besides if you need to update it, it is necessary to make changes only in one place - inside the Table Excerpt macro.

comments: author: Djukic Haris
body: Hi Katerina,

Thanks for the quick reply. I will take a look at the Table Filter and Charts app. I have to get it approved by my admin though.

As for the Table excerpt Include macro, I cannot find that one, no matter what I type? Is this maybe related to the "package" that we have? I don't know if there are different versions depending on the prices that a customer has to pay. I just use the app as it is provided by our company.

Kind regards,

Haris


author: Djukic Haris
body: Before I submit the request for the installation of the app. Is it possible to include the tables and the chart within an excerpt? Or is there another solution? As I said, it doesn't seem that i have it.

PS. Our system is in german, but I still couldn't find it, no matter how I translate it.

KR,

Haris


author: Katerina Kovriga {Stiltsoft}
body: It is possible to do on Server/Data Center, but Confluence Cloud doesn't support bodied macro nesting.

For example, with the help of our [Table Toolbox](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Toolbox+macro?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro you'll be able to filter your source table, aggregate it and then visualize. The macro works like a shell to create macro sequences, for example, "table \<- Table Filter \<- Pivot Table \<- Chart from Table" (the source table here is not only manually created table but the outcome of the Jira Issues, Page Properties Report and other dynamic Confluence macros as well).

But you won't be able to wrap all this sequence into the Table Excerpt macro in Cloud.

So the workaround will be to wrap only the source table in the Table Excerpt macro, reuse it wherever you need and as many times as you need with the help of the Table Excerpt Include macro and then wrap this Include into the Table Toolbox macro for further transformation/visualization.

All the macros are flexible and allow you to hide the source data if required. For example, you may show the filtered table and the chart based on it or leave only the chart without any data and chart controls.


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Djukic Haris](/t5/user/viewprofilepage/user-id/4968681) ,

We've just released a new version of the Table Filter and Charts for Confluence app with the Table Excerpt macro inside the Table Toolbox macro. This feature was mentioned in this thread.

Now you'll be able to create macro' sequences (for example, "source table \<- Table Transformer \<- Table Filter \<- Pivot Table") and reuse the result table.


author: Mykenna Cepek
body: Yes, it looks like you can use a chart macro within the excerpt macro.

I'm using Jira Data Center, and was able to add an Excerpt macro to a test page. In that Excerpt macro, I added a Chart macro.

In another page, I added the Excerpt Include macro, referencing the test page. The Chart showed in this other page.

Essentially, the Excerpt macro is just a wrapper around arbitrary (original) content. The Excerpt Include macro retrieves that original-page content when loading the other page.

The documentation differs slightly between DC/Server and Cloud, but I expect it will work everywhere. Doc links:

* [DC/Server](https://confluence.atlassian.com/doc/excerpt-macro-148062.html)
* [Cloud](https://support.atlassian.com/confluence-cloud/docs/insert-the-excerpt-macro/)


Tags: excerpt

cloud

confluence-cloud

diagram

filter

macro

table

table-filter

table-filter-and-charts