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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

PocketQuery template - handle comma delimited values in a column

We have the following template working with a single value in the "Computers" column, such as "C01".


However, sometimes the Computers column contains more than one computer, such as:

  • C01, C02

and we want each one converted to a separate link.  Some sort of a "for each" within the cell.

Any ideas on how to do this?

1 answer

1 accepted

Got it working.  Note that we replace all commas with semi-colons prior to processing with PQ, hence the use of the semi-color in the below code.

#foreach ($row in $result)
#foreach ($key in $row.keySet())
#if ($key == "Computers")
#set ($computers = $row.get("Computers"))
#foreach($computer in $computers.split(";"))
<a href="$computer">$computer</a>

The Apache Velocity Engine - User Guide was very helpful. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Introducing Confluence Cloud for Microsoft Teams (Available for Preview!)

Hi Atlassian Community, Remote work has shifted how teams collaborate, and we’ve heard from many of you that Microsoft Teams has become mission critical to many of your workflows, from how you chat...

2,483 views 21 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you