Hi
Could someone help with a query to extract all the users in a particular role in a Jira project. Also help me with the extract of all the users in a group. Can I get the Full Name and the user name in the output.
Regards
Sateesh
Try like this,
SELECT U.* FROM projectroleactor P
INNER JOIN cwd_user U
ON U.USER_NAME = P.ROLETYPEPARAMETER
where pid = 'UR PROJECTID'
and projectroleid = 'ROLEID';
Hi sateesh,
can you try this Database query
select u.user_name , u.display_name, u.email_address from
cwd_user u inner join cwd_membership g
on u.id = g.child_id
where g.parent_id = XXXX
order by u.user_name;
Note:
XXXX - replace with the group id you wanted to list, you can get the id of the group from the below (cwd_group) table.
cwd_group will contain the Group Id and info about the group,
cwd_membership table will contain the User and group mapping.
cwd_user will contain the list of users created in jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works but does not display FullName and Username though
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can map the roletypeparameter value in the "projectroleactor" table with the user name in the "cwd_user" table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sateesh,
use this query for that,
SELECT * FROM `projectroleactor`
where pid = 'XXX'
and projectroleid = 'yyy';
u can get the pid (project id) from the below table.
SELECT * FROM `project`;
projectroleid u can get from
select * from projectrole;
Regards,
Sakthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sakthi,
It worked perfect. Can this be used to get the list of users in a particular role in a single Jira project.
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What type of query? Plugin? Database?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.