I have a custom query to compare estimated times against story points. The team already uses the custom query. Currently, we have to change the sprint number any time we want to use the query, to make it match the current (or planned) sprint, and we have to remember to do that.
I'd like to extend the custom query, so it can determine the current sprint number, automatically.
I've looked around for a schema specification for JQL. If it's published somewhere, I can't find it.
Question 1: Using your JQL query language, How can I construct a query, that returns the current active sprint?
Question 2: if no sprint is active, how can I write a query for the most recently completed sprint?