unarmedcivilian opened a new issue, #6720: URL: https://github.com/apache/incubator-devlake/issues/6720
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened The query to classify issue type to strategic / non strategic / bug appears to be incorrect. https://github.com/apache/incubator-devlake/blob/44fa3f23e352bacd5d7482ac807996e2e03636eb/grafana/dashboards/EngineeringOverview.json#L1822 `select sum(case when i.type = 'BUG' then 1 else 0 end) as 'Bug', sum(case when i.type = 'BUG' and epic_key != '' then 1 else 0 end) as 'Strategic', sum(case when i.type != 'BUG' and epic_key = '' then 1 else 0 end) as 'Non-Strategic' from issues i join board_issues bi on i.id = bi.issue_id join boards b on bi.board_id = b.id join project_mapping pm on b.id = pm.row_id where pm.project_name in ($project) and i.resolution_date is not null and date(resolution_date) between STR_TO_DATE('$month','%Y-%m-%d') and STR_TO_DATE('$month','%Y-%m-%d') + INTERVAL 1 MONTH - INTERVAL 1 DAY` ### What do you expect to happen I would expect `strategic` to actually be `i.type != 'BUG'` instead of `i.type = 'BUG'` like above. ### How to reproduce Check attached link to code ### Anything else _No response_ ### Version v0.20.0-beta5 ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org