As Jira Administrator you know you can check the users that have license of Jira Applications assigned. For it, can be checked inside Setup > Applications > Versions & licenses.
Clicking in 243 Jira will go to User Management and show the list of users. But this list it’s not easy to be checked globally.
When you have for example 243 licenses assigned, sometimes you will need to check some condition or relation between all of them.
The following code let you export a JSON file with the list of users.
This script is prepared for checking licenses of Jira Service Desk but can be modified for a list of other Jira application.
Therefore, this script is a good template for giving a list of users with some “customField” if you need also.
Script Editor and Script Console
My recommendation is save the following code in Script Editor and run in Console when you need.
The following link shows the code of scriptrunner.
This script shows how to:
- How to read and manage information out of IssueManager class. There are other world different as get issue object.
- How to create a simple JSON that can be used in other applications (REST API, PowerBI, Excel…)
- How to save files in server of Jira to be exported.
I hope it simple code helps.