Table Transformer macro: data presentation + formatting
Asked by Esteban Borja Lopez:

Hello community,

Im trying to apply FORMATWIKI on the SQL as per reference documentation pointed by Confluence link at the bottom of the macro (<https://docs.stiltsoft.com/display/TFAC/Advanced+table+cells+formatting>), but function is not recognised and gives syntax error.

![Screenshot 2022-03-02 at 12.31.45.png](https://community.atlassian.com/t5/image/serverpage/image-id/186012i49D83AD8DC410790/image-size/large?v=v2&px=999 "Screenshot 2022-03-02 at 12.31.45.png")![Screenshot 2022-03-02 at 12.32.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/186013iC64EC470CEB29154/image-size/large?v=v2&px=999 "Screenshot 2022-03-02 at 12.32.19.png")

*** ** * ** ***

On the other hand, Im struggling with results presentation as I want to set the data in same table but different rows (the only way I got it working is all values next to each other), in addition to set a header row ("January" on the example below)

![Screenshot 2022-03-02 at 12.33.29.png](https://community.atlassian.com/t5/image/serverpage/image-id/186014i0E88C0E24F4FFFB8/image-size/large?v=v2&px=999 "Screenshot 2022-03-02 at 12.33.29.png")

++**Expectations**++

++**![Screenshot 2022-03-02 at 12.33.29.png](https://community.atlassian.com/t5/image/serverpage/image-id/186016iF8785A16D92F7961/image-size/large?v=v2&px=999 "Screenshot 2022-03-02 at 12.33.29.png")**++

Any hint?

Hosting type:

* JIRA: Cloud
* Confluence: Server/Data Center


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Esteban Borja Lopez](/t5/user/viewprofilepage/user-id/589696) ,

Please check what version of the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server&utm_source=atl_community) app you use - it seems that you need to update the plugin.

The current version is 8.1.1, the FORMATWIKI function was added in the 6.1.0 version and amplified since then.

What concerns merged cells in headers, the Table Transformer macro refers to tables as databases via the AlaSQL queries. So, every cell should be whole and unmerged.

Maybe the [Pivot Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Pivot+Table+macro?utm_source=atl_community) macro will do? You may wrap it on top of the Table Transformer macro and aggregate the data.

comments: author: Esteban Borja Lopez
body: Hello [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) , thanks for the fast reply (and sorry for the delayed feedback!).

Indeed we have an outdated version of the plugin, Im just waiting for our IT to implement newest one. Once I got it available and tested, will come back.

On regards the 2nd point, I've tried that without success... nor been able to find examples on how to merge/present data in different rows within same table but next to each other instead (as shown above). If you have any example where to look at, I would appreciate.

In addition, im facing a new issue that im not sure if relates to the outdated table filter plugin: default SLA fields on issue search can be seen ("Time to firs response" and "Time to resolution"), but despite those are available to be added to the table at Jira Issue/Filter Insert macro (by setting them at "Columns to display" section), Filter Table macro does not show any value...

++**Issue search navigation (JIRA)**++

![Screenshot 2022-03-07 at 09.15.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/186669i5DD6064325BA44AC/image-size/large?v=v2&px=999 "Screenshot 2022-03-07 at 09.15.27.png")

++**Table Filter macro (with Jira issue/filter insert macro embedded)**++

![Screenshot 2022-03-07 at 09.16.54.png](https://community.atlassian.com/t5/image/serverpage/image-id/186713i8B5EC1FE3C12D2BF/image-size/large?v=v2&px=999 "Screenshot 2022-03-07 at 09.16.54.png")

![Screenshot 2022-03-07 at 09.17.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/186667iC6E60E7436E70A55/image-size/large?v=v2&px=999 "Screenshot 2022-03-07 at 09.17.16.png")

Any hint?

Thanks in advance!


author: Katerina Kovriga {Stiltsoft}
body: And does the Jira Issues macro show something inside these fields? Without the Table Filter macro, I mean.

Because you posted good screenshot from Jira itself, but not the correct output of the Jira Issues macro in Confluence.

The Table Filter macro can't delete any data in the table columns but leave the headers as they are. It shows the source table as it is.


author: Esteban Borja Lopez
body: I've figured out that despite the calculated value for response time is shown on the ticket and on the issue filter at Jira navigator, it's not being saved by checking on xml export:

![Screenshot 2022-03-07 at 15.14.06.png](https://community.atlassian.com/t5/image/serverpage/image-id/186711iDC787BC9B697965A/image-size/large?v=v2&px=999 "Screenshot 2022-03-07 at 15.14.06.png")

Might it be related to the custom field configuration? Most likely with the type of field...


author: Katerina Kovriga {Stiltsoft}
body: Maybe the type of the field can be the issue indeed - the Jira Issues macro shows the custom fields as usual.


author: Esteban Borja Lopez
body: I've created a custom field ("number" type) and set an automation rule to replicate the value of "Time to first response", and nothing is being copied upon execution.

I've faced in the past that some custom fields types are not eligible to be selected on "Column to display", which make me wonder if the issue is there somehow.


author: Katerina Kovriga {Stiltsoft}
body: Maybe try to raise a new question regarding custom fields with a more wide topic mentioning Jira Issues macro and tags that include Jira as well. It may attract more attention from other Community members and/or Atlassian team, hope they will be able to suggest some tips.


author: Esteban Borja Lopez
body: Thanks for the feedback [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) . I've opened a new thread with whole details (checked with IT dept beforehand and they are clueless as well)... in case you want to have a look :) <https://community.atlassian.com/t5/Confluence-questions/SLA-custom-fields-values-not-being-saved-possible-issue/qaq-p/1965252#M235831>


Tags: server