Would like to run report that displays the average number of defects per story point by status for a sprint. The story points would be tied to the user story associated with the defect (not the defect itself) For example, user story1 has 8 points associated with it and bug1, bug2...bug8 are linked to user story1 by selecting "relates to" issue when creating the defect. How do we first run a query that displays the story points associated with the user story linked to the defect and then run a report against it?