SELECT
pj.pname AS '项目名称',
CONCAT(
pk.PROJECT_KEY,
'-',
ji.issuenum
)AS '问题标号',
ji.SUMMARY AS '问题主题',
cg.AUTHOR AS '经办人',
cu.display_name AS '经办人姓名',
ci.FIELD AS '步骤状态值',
ci.OLDVALUE AS '原状态值',
ci.OLDSTRING AS '原状态名',
ci.NEWVALUE AS '新状态值',
ci.NEWSTRING AS '新状态名',
cg.CREATED AS '处理时间'
FROM
changeitem ci
LEFT JOIN changegroup cg ON ci.groupid = cg.ID
LEFT JOIN jiraissue ji ON ji.ID = cg.issueid
LEFT JOIN project pj ON pj.ID = ji.PROJECT
LEFT JOIN project_key pk ON pj.ID = pk.PROJECT_ID
LEFT JOIN cwd_user cu ON cu.user_name = cg.AUTHOR
WHERE
ci.FIELD IN('status')
ORDER BY
pj.ID,
cg.issueid desc,
cg.CREATED desc
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删