I need to create a query that would return all the defects linked to the stories processed in a particular sprint.
To find the stories I can use the following query 1.:
project = X AND sprint =Y AND type = story AND status not in (Z)
To find the defects linked to a story, I can apply:
project = "X" AND type = bug and issue in linkedIssues(issueKey)
The question is: how can I combine these two queries, so that I don't need to run the query 1 one and then manually put the story IDs into the query 2.
I would be very grateful for your suggestions.
you can use JQL Search Extensions for Jira & reports plugin
In your case following query will get the required results.
issue in linkedBy("project = X AND sprint =Y AND type = story AND status not in (Z)")
I believe there is no standard JQL way to fulfill your needs.
If you have scriptrunner installed, you should be able to use the linkedIssuesOf function like this:
project = "X" AND type = bug AND issueFunction in linkedIssuesOf("project = X AND sprint =Y AND type = story AND status not in (Z)")
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events