Query data on Teams with Atlassian Analytics

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Please note: We're in the process of changing from "Issue" to "Work item" to refer to a single piece of work in Jira. You may see either or both of these terms used in your apps while we're rolling out this change.

This article has a few examples of how to query your Atlassian team data within Atlassian Analytics. The “Team” table in the Atlassian Data Lake holds information about your team(s), such as the team name, team description, membership setting, status, team ID, and more. The “Team member” table has information about the individual users that belong to each Atlassian team.

Throughout this article, we’ll cover two different examples of how to query your Atlassian team data. The first example is how to query the number of issues assigned to a team. The second example is how to query the users added to a specific team.

Solution

Query total issues assigned to a team

In this example, we’ll query the number of issues a team is assigned through the “Team Picker (single team)” field named 'Team.'

  1. Select Create > Chart > Custom chart from the global navigation to start with a blank visual mode query

  2. Add the following columns to your query:

    • The Issue key column from the Issue table under “Jira family of products” and use the ‘Count of unique’ aggregation

    • The Name column from the Team table, which will use the 'Group' grouping

  3. Optional: Rename the “Count of unique Issue key” column to “Issues”

  4. Run the query

You will see the results displayed in a pie chart similar to the following:

A pie chart breaks down total issues assigned per team

Query teams and users per team

  1. Select Create > Chart > Custom chart from the global navigation to start with a blank visual mode query

  2. Add the following columns to your query:

    • The Name column from the Team table and group the column

    • The Name column from the Account table and Group the column

  3. Run the query

If you don’t want any additional columns added to the query, ensure that the join path used to connect the Team and Account tables is routed through the “Team member” table, as shown in the screenshot below.

The Account and Team member tables are joined through the Account ID column. The Team member and Team tables are joined through the Team ID column

The chart will now show a list of your team names and the individuals who have been added to that team as seen below:

A table chart lists the team names and the users within each team

Query number of users per team

If you’d like to get a count of users per team, you can make a modification to the chart we just created:

  1. Modify the Name column from the Account table to use the Count of unique aggregation

    • Leave the Name column from the Team table grouped

  2. Optional: Rename the “Count of unique Name” column to “Users” or “Team members” to help with clarity

  3. Run the query

This will return a bar chart, as seen below:

A bar chart representing different teams and the number of users within the team

Query number of teams a single user belongs to

If you’d prefer to see how many users are on multiple teams, you can create the initial chart before applying the steps below:

  1. Modify the Name column from the Team table to use the Count of unique aggregation

    • Leave the Name column from the Account table grouped.

  2. Optional: Rename the “Count of unique Name” column to “Teams” for clarity

  3. Run the query

  4. Add a Filter step to include any rows where the “Teams” column is greater than 1

    • This will exclude any users who have only been added to a single team

A bar chart representing the number of teams a single user is assigned

Now that you’re familiar with the team data, you can begin to use Atlassian Analytics to learn more about how your organization uses teams.

Updated on May 16, 2025

Still need help?

The Atlassian Community is here for you.