Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,794
Community Members
 
Community Events
176
Community Groups

Table Transformer - How to itereate elements returned by String Split function

mzaldivar I'm New Here Jan 19, 2023

Hello community,

This question is about the javascript function Split using FORMATWIKI.

I see examples where you can do this: T1.'Column_Name::string->split("/")->0, T1.'Column_Name'::string->split("/")->1, etc. However, since Split function returns an array of strings, is there a way to iterate each of the elements of such array?

 

Thank you very much for any insights.

 

Best,

__

Mario

1 answer

Hi @mzaldivar,

You may also check this example from our documentation (please navigate to the section “Splitting cell values in a column to different rows” if the anchor doesn’t work). Seems that it looks similar to your question.

If you need to do smth else, please provide a screenshot of your source table and describe what exactly you need to achieve (here or via our support portal that is based on Jira Service Desk and is confidential), we’ll try to help with the query.

mzaldivar I'm New Here Jan 20, 2023

Hi Katerina

Thanks for the reply! - What I was looking for is more a way to store the elements of the returning array so that I can format each one. For example, in one single cell I have N URLs, such as http1, http2, http3, etc and I want to convert each one into links. So I was thinking of splitting and iterate one by one. Would that be the right approach with table transformer?

 

Thanks!

Like Stiltsoft support likes this

Yes, your case seems to be similar to the one I provided a link to.After splitting your links using the similar beginning or a character between them, you may use another Table Transformer macro with the FORMATWIKI function to recreate clickable links from each entry.You may share a screenshot of your source table here or via our support portal as I've mentioned before and we'll look into the case thoroughly.

Like Stiltsoft support likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events