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.

Thanks

Adam

4 answers

1 accepted

This widget could not be displayed.

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.

This widget could not be displayed.
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 ?

 

 

This widget could not be displayed.

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 
from PROJECTROLEACTOR prjra, PROJECT prj, PROJECTROLE prjr
where prjra.roletypeparameter in ('group1', 'group2', 'user1', ...)
  and prjra.pid = prj.id
  and prjra.projectroleid = prjr.id
  and prjr.name = 'Administrators'
This widget could not be displayed.

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;

Cheers

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
Join discussion

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