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:

$userAccessor.getUsers()

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.

$userAccessor.getUsers().size()
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

Webinar: Dean Leffingwell and Steve Elliot present on SAFe 5.0, come ask Dean and Steve questions!

...steemed Steve Elliot (head of product for Jira Align). Agenda: What’s new or changed in SAFe 5.0: Introduction of OKRs Essential SAFe How to achieve true business a...

479 views 2 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