The following functions search issues based on sprint information.
board parameter in the three functions below may be either the name of the board, or the board ID. You can find the board ID in the page URL when viewing the board. For the screenshot below the ID is 30.
Query sprint issues of a specified agile board.
issueFunction in inSprint("EX Scrum Board", "Sprint 3")
Query the issues of the next active sprint of a specified agile board.
issueFunction in nextSprint(452) AND assignee = currentUser()
Query the issues of the previous active sprint of a specified agile board.
issueFunction in previousSprint("Kanban Board") AND fixVersion IS EMPTY