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?
Community moderators have prevented the ability to post new answers.
This should work.
$userAccessor.getUsers().size()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh wait! It doesn't actually return an array, so .size() won't work. I think you might have to loop through it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks. The size() methode I tried also without success. So looping is the only solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.