Is there a JQL that can identify stories that were closed at the end of a sprint and reopened the following sprint??
Maybe this gets you there. It ignores the sprint bit but displaying the sprint field might be sufficient.
status was done and status != done
now if you need to find situations where the issue is now closed (again), that is you want to find issues that are "reopened" but currently closed, then I suggest you add a label "reopened" using Automation. This will allow you to more precisely query for your needs.
Yes, and...to Jack's answer...
The difficult part of your use case is "following sprint", as I do not believe that is possible with out-of-the-box JQL.
If you only check if issues were done, re-opened, and in an unfinished sprint, this could work:
project = myProjectName
AND status WAS Done
AND status != Done
AND (sprint IN openSprints()
OR sprint IN futureSprints())
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics 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