membersOf()

Shneior Dicastro March 28, 2018

Hi,

I try to get query that shows all member of the group "QA-HH",

is there a way to get the information as  memberOf() function do? 

 

 

Thanks 

Shneior

2 answers

3 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2018

Hi Shneior,

at what level you need to get this information? At DB level, at application level? 

memberOf() is a JQL Function that allows you to filter something based on user mermebrship. For example, this query retrieve all issue whose assigne is a member of QA-HH group 

assignee in memberOf("QA-HH")

If you need to retrieve users in that group you can access User Management->Group find this group and you will have a list of all users within. You need to be a Sys Admin to do that. If not ask to your Sys Admin.

 

Ciao,

Fabio

Shneior Dicastro March 28, 2018

Thanks for your answer

I need it in DB level  sql query

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 8, 2022

Hi @Shneior Dicastro ,

here your query :

select cu.user_name, cu.display_name, cu.email_address
from cwd_membership cm
inner join cwd_user cu on (cm.child_id=cu.ID)
where cm.parent_name = 'YOUR_GROUP_NAME_HERE';

If it's ok, please mark my answer as accepted.

Fabio

0 votes
Andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2018
Shneior Dicastro March 28, 2018

select * from cwd_membership; 

I can't find "cwd_membership" table

why?

Andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2018

this query works on all of our servers. Maybe you're on the wrong database?

Shneior Dicastro March 28, 2018

ok, i think it's internal permission issue in my organisation(Qualcomm) 

Like Laurisa likes this

Suggest an answer

Log in or Sign up to answer