The number of delivered requirements or features.
This metric is calculated by counting the number of delivered issues in type “REQUIREMENT” in the given data range.
Data Sources Required
This metric relies on the issues collected from Jira, GitHub, or TAPD.
Transformation Rules Required
This metric relies on the ‘type-requirement’ configuration in Jira, GitHub or TAPD transformation rules to let DevLake know what CI builds/jobs can be regarded as Requirements.
SQL Queries
If you want to see a single count, run the following SQL in Grafana
select
count(*) as "Requirement Count"
from issues i
join board_issues bi on i.id = bi.issue_id
where
i.type = 'REQUIREMENT'
and i.status = 'DONE'
-- this is the default variable in Grafana
and $__timeFilter(i.created_date)
and bi.board_id in ($board_id)
If you want to see the monthly trend, run the following SQL
SELECT
DATE_ADD(date(i.created_date), INTERVAL -DAYOFMONTH(date(i.created_date))+1 DAY) as time,
count(distinct case when status != 'DONE' then i.id else null end) as "Number of Open Issues",
count(distinct case when status = 'DONE' then i.id else null end) as "Number of Delivered Issues"
FROM issues i
join board_issues bi on i.id = bi.issue_id
join boards b on bi.board_id = b.id
WHERE
i.type = 'REQUIREMENT'
and i.status = 'DONE'
and $__timeFilter(i.created_date)
and bi.board_id in ($board_id)
GROUP by 1