3 min read

Unlimited JSM License? How to find the real agents at JSM for the right Cloud or DC license

Managing user licenses and determining the number of active agents in Jira Service Management (JSM) is crucial when organizations transition to the Atlassian Cloud or Data Center platforms. As subscription costs are based on the number of users, accurately assessing the user count becomes a significant challenge. To address this issue, we have developed a Groovy script that leverages Adaptavist Scriptrunner for Jira to determine the number of active JSM agents in your organization.


Let's explore how this script works and how it can simplify user management in Jira Service Management.


The Code

The given Groovy script leverages Jira's official Java API to achieve the same outcome as an SQL statement. The code executes the following actions:

  1. Retrieves a collection of all active users in the 'jira-servicedesk-users' group, which typically consists of JSM agents.
  2. Fetches a list of JSM projects presented in your Jira instance.
  3. Verifies whether each user has edited at least one ticket within a JSM project.
  4. Compiles a roster of user names that satisfy the given criteria.


The Groovy script below, developed to be used with Adaptavist Scriptrunner for Jira, uses Jira's official Java API to answer this question. Additionally, it gives the same function as SQL statement. 


Here are your Codes:


Important Considerations

While the script is incredibly useful, it's important to keep the following points in mind:

  1. High System Load: Running the script through all projects and tickets can potentially strain the system. We strongly recommend testing it in a non-production environment before deploying it in a live environment.
  2. Customization: Depending on your Jira instance's requirements and size, you may need to customize the script. Consider it as a starting point that can be modified to suit your specific needs.


How will this help me?

Determining the number of active JSM agents is a critical task when managing user licenses in Jira Service Management. Our provided Groovy script offers a practical solution to this challenge, simplifying user management and facilitating cost calculations for cloud or data center subscriptions. However, exercise caution when running the script and always test it in a safe environment before deploying it in your production setup.

If you have any questions or require further customizations, please don't hesitate to reach out to us. We're here to help you make the most of Jira Service Management and optimize your user management processes.


More about Jira Service Management and our licenses

Jira Service Management trainings

Atlassian Enterprise License Agreement (ELA)

The Future of ITSM with Atlassian


JSM Wrap-up August - Atlassians virtual agent, User security & more

JSM Wrap-up August - Atlassians virtual agent, User security & more

Exploring the latest enhancements in Jira Service Management August proved to be a bustling yet productive month for Atlassian, particularly on the...

JSM Wrap-up June - What's new in Jira Service Management?

JSM Wrap-up June - What's new in Jira Service Management?

New Jira Service Management features and updates June was definitely a busy month for Atlassian on Jira Service Management front. We have been...

JSM News Wrap-up - External Help Resources, Schemas & Customer Notification Logs

JSM News Wrap-up - External Help Resources, Schemas & Customer Notification Logs

Exploring the Latest Enhancements in Jira Service Management Atlassian is on a roll, introducing some exciting updates to Jira Service Management...