query to list all JIRA project admins from all projects

Does anyone know of a way to easily retrieve a list of all project administrators in JIRA? Is there a SQL query somewhere that I can poach or some other way to get this data out of JIRA?

Google wasn't as helpful as I'd hoped. Suggestions?

I feel like there is an email this issue plugin that will let me email users based on role, perhaps I need to look at that. Either way, just need a quick way to identify and message all project admins. Appreciate any suggestions.



4 answers

1 accepted

1 vote
Answer accepted

There is an easy way to do this from JIRA itself. Go to Administration > Mail > Send E-Mail. Select project Roles and select the role 'Administrators' in the To field. You can now put in the content and send it!

What about using JIRA 3.13.2?

That does assume that your permission schemes use "role = administrator" to control project admin access. You may do it other ways (e.g. project lead, group...).

The admin role is fine for me, we want to extend it beyond just the leads because sometimes leads are just figure heads. They own the project, but aren't the worker bees involved.

I can't use this apparoch in 3.13.2 though. I think the JIRA Email This Issue Plugin has an option to just email all users that may be similar. i can try that. If not, I may be able to send a blast out using a dev JIRA 4 instance. I'll have to try it.

Thanks for the input though Jobin and Nic.

select lead project_admin,project.pname from project union select 
projectroleactor.roletypeparameter, project.pname from projectroleactor,
 projectrole, project where projectrole.id = projectroleactor.projectroleid and projectroleactor.pid =project.id and projectroleactor.roletype ='atlassian-user-role-actor' and projectrole.name = 'Administrators';

even i am looking for the same. I used this query , However the email address i am not able to connect here. Any query which list of Email address of the Project Admin ?



Below is the latest/cleanest query that can easily be modify according to your needs


SELECT p.pname, pr.NAME, u.display_name, u.email_address 
FROM projectroleactor pra
INNER JOIN projectrole pr ON pr.ID = pra.PROJECTROLEID
INNER JOIN project p ON p.ID = pra.PID
INNER JOIN app_user au ON au.lower_user_name = pra.ROLETYPEPARAMETER
INNER JOIN cwd_user u ON u.user_name = au.user_key where pr.NAME = 'Administrators' order by p.pname;



Project Lead is not the same as Project Administrators.  I'm using the following SQL to find any group and/or user who are Project Administrators of any Project.

select prjra.roletypeparameter, prj.pname, prj.pkey 
where prjra.roletypeparameter in ('group1', 'group2', 'user1', ...)
  and prjra.pid = prj.id
  and prjra.projectroleid = prjr.id
  and prjr.name = 'Administrators'

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Jira

Updates to jira.atlassian.com give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

407 views 1 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you