How to query on JIRA DB to get this:
jira version: 4.3.2
There's not enough information here to form a useful query.
First, you've not said where your user lists are held - crowd, ldap, internal etc. That's only a minor issue with a simple answer (it's likely to be cwd_user for the basic list, and then cwd_groups and cwd_membership, but we can't be sure until we know the directory)
The main problem is that you have not told us how you are defining the link between a project and user. Just saying "user is in project" is not good enough. You need a rule like "can view issues" or "is in the role of user" or "can comment on issues" - or combinations of them.
All of the rules you could define are complex, and often have many routes through your data. So there's no answer for your question until you define the relationship between project and user.
users list is in crowd.
Ok. So you'll need to execute the queries to get the users and groups on the three CWD tables I already mentioned. They're quite simple to join - read cwd_membership for lines where it mentions group, join it to cwd_user for more user info, and cwd_group for the group name.
What about the relationship between user and project?
what do you mean by relationship between user and project?
yes, user can create/view/modify issues ?
but i want just the name of the user and which project he is part of
It looks like you're new here. Sign in or register to get started.