can u please provide the sample jql query to calculate defect density
JQL is for finding issues, not looking at their data or reporting on them.
All we can tell you to do with JQL is "use it to search for the issues you want to report on".
Then you can push the results through some reporting.
It looks like you're new here. Sign in or register to get started.