1、统计所有项目主要以上的漏洞和bug
-- 统计所有项目主要以上的漏洞和bug SELECT count(*) FROM issues WHERE project_uuid IN (SELECT uuid FROM projects WHERE scope='PRJ') and issue_type IN(2,3) AND severity IN('BLOCKER','CRITICAL','MAJOR')
2、统计所有某个项目主要以上的漏洞和bug
SELECT count(*) FROM issues WHERE project_uuid='AWtu8KL4jUumLh6DFezX' and issue_type IN(2,3) AND severity IN('BLOCKER','CRITICAL','MAJOR')
SELECT count(*) FROM issues WHERE project_uuid='AWtu8KL4jUumLh6DFezX' and issue_type IN(2,3) AND severity IN('BLOCKER','CRITICAL','MAJOR')
其中project_uuid是在project表中查询出来的项目唯一标识
字段:
issue_type(1、坏味道;2、bug;3:漏洞)
severity:问题严重级别('BLOCKER':阻断,'CRITICAL':严重,"MAJOR":主要,'MINOR':次要,'INFO':提示)
project_uuid可以根据:SELECT NAME,uuid,project_uuid FROM projects WHERE scope='PRJ'
SELECT NAME,uuid,project_uuid FROM projects WHERE scope='PRJ'