Hi Team,
I require to fetch the details of active users from Database, which belong to different groups. I tried below query:
SELECT u.id AS UserId, user_name, lower_first_name, lower_last_name, parent_id AS GroupId, parent_name AS GroupName FROM cwd_user u LEFT JOIN cwd_membership m ON u.ID=m.child_id where u.active='1' ORDER BY parent_id ;
and
SELECT u.id AS UserId, u.active,user_name, lower_first_name, lower_last_name, parent_id AS GroupId, parent_name AS GroupName FROM cwd_user u LEFT JOIN cwd_membership m ON u.ID=m.child_id ORDER BY parent_id ;
But the result is not showing only active users, it shows active and inactive both,
Can you please help me with exact query?
I raised a query with Atlassian support but they are saying they do not support custom query.
Please suggest.
Nidhi