The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Merge/Group & keep Format through Table transformer

Matias G Labrana
Contributor
July 15, 2024

Hello everyone,

I would like to see if exist the possibility through Table tranformer to group cells and keep them in some way to the format:

For example having a initial table like this: 1.png

Have a final table like this:2.png

I know Pivot is a possible solution, but is messing with the final format that I want to get.

 

Example of how I dont want to have my table:
3.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Nikita Kamai
Contributor
July 19, 2024

Hello,

I am Nikita from Stiltsoft.

Please, check how this SQL query helps you out - simply place it inside our macro SQL query field and save:

CREATE TABLE TX;
INSERT INTO TX
SELECT ROWNUM() as 'id', * FROM T1;

SELECT
CASE WHEN 'id' IN (SELECT MIN('id') from TX GROUP BY 'Column 1') THEN 'Column 1'
ELSE FORMATWIKI("{cell:border-top-color: white; border-top-width: 2px;}", NULL, "{cell}") END as 'Column 1',
'Column 2','Column 3'
FROM TX

Best wishes,
Nikita

TAGS
AUG Leaders

Atlassian Community Events