I have created a query like below but the problem here is story id's are getting added or removed.
I have a release ID = "OR-1122" and it has multiple stories in it like "OR-4492", PR-4487" etc. Each story has bugs linked to them.
project = "Project 1" AND
(issue in linkedIssues("OR-4492")
OR issue in linkedIssues("OR-4487")
OR issue in linkedIssues("OR-1461")
OR issue in linkedIssues("OR-1460")
OR issue in linkedIssues("OR-923")
OR issue in linkedIssues("OR-921"))
AND issuetype in (Bug, Defect) AND status not in (Closed, cancelled)
How can i create a query so that I can extract all bugs against each story without changing query. Hope I am clear.
using Script Runner I took a second to offer you an idea, if this is feasible at all will depend on if your deployment is Server or Cloud (there are difference in Script Runner) - I have tested on Jira Server.
Also it will make a difference if you have Script Runner at hand.
The query will filter for Stories that have no resolution yet, but have at least one issue linked which is not in Status Closed or Cancelled and are of type Bug or Defect:
project = "Project 1" AND type = Story AND issueFunction in linkedIssuesOf("type in (Bug, Defect) AND status not in (Closed, Cancelled)") and resolution is empty
In case the requirement was not understood correctly, let us know. Maybe also Jack replies with something that suits better later on.
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