select jiraissue.issuetype, component.cname, issuetype.pname,
jiraissue.issuestatus,issuestatus.pname, jiraissue.created,
CONCAT(monthname(jiraissue.created)," ",
year(jiraissue.created)) as monthyear,
jiraissue.RESOLUTIONDATE,
count(jiraissue.id), avg(DateDIFF(jiraissue.RESOLUTIONDATE,
jiraissue.created)) as days_to_close,
month(jiraissue.Created) as month
from project
join jiraissue ON project.id=jiraissue.project
join issuetype ON jiraissue.issuetype = issuetype.id
JOIN issuestatus ON jiraissue.issuestatus = issuestatus.id
left JOIN nodeassociation ON jiraissue.id = nodeassociation.source_node_id
left JOIN component ON nodeassociation.sink_node_id = component.id
where project.pkey='EWSMSP'
and jiraissue.RESOLUTIONDATE is not null
and jiraissue.created > {{since}}
and issuetype.pname in('Incident')
group by month
order by month
正如你所看到的,第一个是3月31日创建的,但在月份栏中显示的是4月。第三张也一样。
暂无答案!
目前还没有任何答案,快来回答吧!