User Tools

Site Tools


wiki:group_jira_customers_by_project_mysql_query
SELECT t1.orgid, AO_MEM.USER_KEY, AOO.NAME, c.ID, c.user_name, c.first_name, c.last_name, c.email_address, t1.project, t1.proj_key
FROM AO_54307E_ORGANIZATION AS AOO
INNER JOIN AO_54307E_ORGANIZATION_MEMBER AS AO_MEM ON AOO.ID=AO_MEM.ORGANIZATION_ID
INNER JOIN cwd_user AS c ON AO_MEM.USER_KEY=CONCAT("JIRAUSER",c.ID)
INNER JOIN (
    SELECT AOP.ORGANIZATION_ID AS orgid, p.pname AS project, p.pkey AS proj_key FROM AO_54307E_ORGANIZATION_PROJECT AS AOP
    INNER JOIN project AS p ON AOP.PROJECT_ID=p.ID
) t1
ON AO_MEM.ORGANIZATION_ID=t1.orgid;
wiki/group_jira_customers_by_project_mysql_query.txt · Last modified: 2020/12/14 10:44 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki