There is currently no way to just get the stories/issues from recently closed or last sprint.
Since there is no JQL function such as sprint in lastSprint(), so you'd have to manually change the JQL filter each time.
There's an open request for this feature, you can also vote on it: https://jira.atlassian.com/browse/JSWSERVER-12432
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