Retrieve a list of issue assignees from a specific project in Jira
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The following SQL query will return a list of unique existing assignees from a specific project.
This was written in MySQL syntax. It may be necessary to tweak it if another database flavor is being used.
Solution
Remember to change the Project ID below in the WHERE clause.
1
2
3
4
SELECT DISTINCT u.display_name, au.lower_user_name , j.assignee
FROM jiraissue j JOIN app_user au ON j.assignee = au.user_key
JOIN cwd_user u ON u.lower_user_name = au.lower_user_name
WHERE j.project = 12345;
The output should be similar to the following:
1
2
3
4
5
6
Display Name User Name
-------------- -----------------
admin admin
Vincent Wong vwong-sd-demo
Alana Grant agrant-sd-demo
Ryan Lee rlee-sd-demo
Was this helpful?