Here is a jql query that I got the result of
assignee in membersOf("project")
This would return the issues of members belonging to project.
I would like to know in which table of jira database would this data(or this link of which member belong to which proj) is stored?
Group Membership
The group memberships are stored in the
CWD_MEMBERSHIP
table.Example:
Example2, to fetch the user infos as well:
Project Role Membership
The project role memberships however are in the
PROJECTROLE
andPROJECTROLEACTOR
tables.Example:
Example2, to get users that are explicitly assigned to project roles (not through groups):
Issue Change History
To get the issue history, you'll need the
changegroup
andchangeitem
tables joined tojiraissue
. Changegroup stores who changed and when, changeitem contains the olda and new data, alongside what field was changed.Example of listing ex-assignees:
The last row's (newest
created
)newvalue
must matchjiraissue
.assignee
-s value.