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

Xporter: How to print variable used to iterate

Hello, the question says it all. I'm trying to print the value of a variable used to iterate in  a for loop... but nothing is shown.


&{for count=TestsCount}
        Count: ${count}

When using this, Count doesnt show anything, but TestsCount is equal to 2.

What am I doing wrong?


Thanks for your help.

1 answer

1 accepted

0 votes
Answer accepted

Hi @Barry Allan,

This &{for...  &{end} notation is used only to iterate over issues.

In your case you just need to use this (Xporter 5.0):

#{for count=TestsCount}
Count: ${count}

If you just want to print the TestsCount value use this:



Rui Rodrigues

I can TestsCount, but the for loop doesn't print any value. I do have Xporter 5.0

The count variable represents the current index value. What do you want to print? The total or the current index value?

The current index value.

You must user ${count} to print the current iteration index, as shown on the example above.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

751 views 7 24
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