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

how to get the number of items in a velocity array list?

I have some useful user macros to help me administrating our wiki.

I would like to get quickly the total size of users from the user store. I cant get a list of all users with that method:


But how can I get the size of the list without looping it by foreach?

2 answers

$array.size() works
0 votes
Davin_Studer Community Leader Nov 11, 2014

This should work.

Davin_Studer Community Leader Nov 12, 2014

Oh wait! It doesn't actually return an array, so .size() won't work. I think you might have to loop through it.

Many thanks. The size() methode I tried also without success. So looping is the only solution?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Agile

Where is my version 1.23 deployed? or How to manage multiple versions across multiple environments?

Introduction In this article we describe the complexity of managing release cycles of complex IT solutions that comprise of a number of Apps, Service and/or Microservices. In particular, we will tou...

346 views 0 3
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