How can I parse a column with a list of comma separated values and create new rows for each
Asked by Adam Petrie:

I am presently using Table Transformer on Jira data and getting a Linked Issues for a list of Epics of interest. Looks like this sample.

When there is more than 1 linked issue I'd like to create a row in my table for each of the linked issues and duplicate all the other columns.

Help appreciated.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/349039i55B9B36E3DCC7001/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Stiltsoft support
body: Hi [@Adam Petrie](/t5/user/viewprofilepage/user-id/5585209) ,

If you are talking about the Table Transformer macro provided by the [Table Filter, Charts \& Spreadsheets for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-charts-spreadsheets-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app, you may check [this Community thread](https://community.atlassian.com/t5/Confluence-questions/Flatten-an-array-in-Table-transformer-macro/qaq-p/2048472). Seems that it's exactly what you are trying to do.

comments: author: Adam Petrie
body: I'm looking at the referenced thread. It does appear to be exactly what I'm trying to solve. When I try to implement I'm getting an error I do not understand.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/349061iFA19A45C862EC9BE/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/349062iF56BBD0B868B5EA6/image-size/large?v=v2&px=999 "image.png")


author: Adam Petrie
body: underlying table I'm trying to run above query on

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/349065i53AD9420EC022FBD/image-size/large?v=v2&px=999 "image.png")


author: Adam Petrie
body: The values come from Jira are coming has HTML links. Is there another step to be taken so they are only text?


author: Stiltsoft support
body: Please follow the given example: remove the T1. parts from your query when you refer to columns. Your error means that you are trying to transform, for example, your 'Key' column from the original T1 table and then rename it AS T1.'Key' that means the same column from the original table (and we don't have the original table after the transformation anymore). Obviously it is impossible, hence the error.

SEARCH / AS @a EX('Col 3'-\>split(",")) /  
RETURN(@a-\>'Col 1' AS 'Col 1', 'Col 2' AS 'Col 2', _ AS 'Col 3') FROM T1


author: Adam Petrie
body: Thanks very much for the prompt responses and tutoring. Clearly I'm new to this and still learning. :)


author: Jim Knepley - ReleaseTEAM
body: I think the SQL-based transformers use the H2 database internally, and [splitting a string in H2 is a little involved](https://stackoverflow.com/questions/72273265/recursive-split-of-path-with-h2-db-and-sql).

If you are using the SQL-based table transformer, could you provide the SQL query that your table is based on? Hopefully, we can unwrap what's building Linked Issues at the source, instead of trying to manipulate the string contents of those cells.

comments: author: Jim Knepley - ReleaseTEAM
body: (ignore this, the answer that [@Stiltsoft support](/t5/user/viewprofilepage/user-id/5062270) posted is better)


Tags: confluence-unknown-hosting-type

filter

table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer

unknown-hosting-type