Stiltsoft macro: Combine three tables into one with content on one row only

Bjørn Tennøe November 30, 2020

I have used the Table Transformer macro by Stiltsoft to combine three tables into one, see screen shot. But the content comes on three rows, which is undesirable for my purposes. I need the three rows to be combined into one for this to be useful to me. The reason is that the table is supposed to be used in a bigger report table on a parent page.

The macro accepts SQL for transformation purposes. But I don't know enough SQL to perform the desired transformation. Is it possible? Does anyone have working code? Any help would be greatly appreciated.

image.png

1 answer

1 accepted

3 votes
Answer accepted
Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2020

Hi @Bjørn Tennøe ,

The Table Transformer macro can lookup as many tables as you need by the default Lookup preset, but you need a column with unique data (for example, issue keys, employees' names, etc.) to match the corresponding cells into the same rows.

Mon 1-1.pngMon 1-2.pngMon 1-3.pngAs you can see, here I combine my result report from three separate tables (manually created or reused with the help of the Table Excerpt/Table Excerpt Include macros - it doesn't matter) and use the Project column with unique project names for the lookup feature.

Maybe you can provide the screenshots of your original tables? Because I see that criteria, phase, status and summary are the description of something (projects? products? issues?) and we need to match them by this 'something'.

P.S. If you want to merge your tables by the table headers, just choose the default Merge preset:

Mon 1-4.pngMon 1-5.pngMon 1-6.png

Bjørn Tennøe November 30, 2020

Hi @Katerina Kovriga _Stiltsoft_, thank you for your swift, thoughtful and useful reply. I did as you said and added a column with dummy data. I gave it the name "__" (two underscores; for some reason, one underscore didn't work). While it looks a little bit weird for passers-by, I think we can live with it :-) Again thanks!

Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2020

@Bjørn Tennøe , you may hide your additional column with the help of the Table Filter macro.

Wrap your Table Transformer macro in the Table Filter macro body:

Tue 1-1.pngAnd check the Hide columns box into the Filters tab:

Tue 1-2.pngThen go to the Filtration tab -> Set filters' default values section and choose what columns you want to hide:

Tue 1-3.pngHope this will help your case.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events