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?
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
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.