Need a JQL query for the user story and the defects associated with the User story using Script runner JQL functions.
We have defects linked to User story. We would like to see all defects related to the user story. We need a report that displays all the user stories and its associated defects and total count of defects related to the user story