Splitting JIRA labels into multiple columns
Asked by Craig Alterman:

I have a JIRA table of issues that each contain a group of labels. I need to be able to analyze the labels independently, thus have them separated into separate columns.

The string of labels appears in confluence as one long string with spaces between each label such as "Label1 label2 label3"

Any idea how to do this using table transformer? or another method?


Answers:
author: Nikita Kamai
body: Hello, [@Craig Alterman](/t5/user/viewprofilepage/user-id/4997085)   

This is Nikita from Stiltsoft.  

You can swiftly split the values with Table Transformer without any additional macro or out-of-Confluence steps and then proceed with the values analytics. [Here](https://docs.stiltsoft.com/display/TFAC/Custom+Transformation+-+use+cases+with+advanced+SQL+queries#CustomTransformationusecaseswithadvancedSQLqueries-Splittingcellvaluesinacolumntodifferentrows) you can see how it it's done.  

Additionally, you can resort to [Pivot Table](https://docs.stiltsoft.com/display/TFAC/How+to+use+Pivot+Table+macro) usage to splilt values and aggregate right away by [configuring *cell value delimiter*](https://docs.stiltsoft.com/display/TFAC/Managing+pivot+table+options#Managingpivottableoptions-Setthecellvaluedelimiter)setting in the macro browser*.*   

In case you will need additional help, you can always contact us via a [support ticket](https://jsd.stiltsoft.com/servicedesk/customer/portal/2).


author: Aron Gombas _Midori_
body: If it doesn't have to dynamic, but a one-time thing, you could export the issues to Excel, then split the "labels" value at the comma characters to multiple columns, then copy-paste or import the Excel spreadsheet to the Confluence page.

comments: author: Craig Alterman
body: This is something ive considered. I was hoping to avoid it in order to make what im trying to build scalable


author: Craig Nodwell
body: Hi [@Craig Alterman](/t5/user/viewprofilepage/user-id/4997085) welcome to the community.  
Quick question, are these labels coming from the Jira issues? Re: is this part of the configuration of the Jira macro output?

comments: author: Craig Alterman
body: [@Craig Nodwell](/t5/user/viewprofilepage/user-id/3973516) - Yes, they are part of the JIRA table macro output


author: Shikha Saka
body: [@Craig Alterman](/t5/user/viewprofilepage/user-id/4997085) were you able to get this resolved? I am looking at something similar but not got results. split() doesnt seem to be working. The link above seems to be adding another row for each label which will not work for my case.

[@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) any other alternate or suggestions?


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Shikha Saka](/t5/user/viewprofilepage/user-id/5053466) ,

Unfortunately, there is nothing new from our side: as Nikita has mentioned before, you may split labels by spaces and place every separate label in a separate row (it can be later useful for filtering by every particular label and not the whole string) or set the corresponding value delimiter to aggregate/count each label separately through the Pivot Table macro.


author: Shikha Saka
body: Ok thanks!


Tags: confluence-server

jira

server

table