Scope Delta: Sprint JQL for Jira

Functions

All three functions accept the operators in and not in. Any other operator returns an error.

The sprint argument is the sprint's numeric ID, not its name.


addedAfterSprintStart(sprintId)

Returns issues that are in the sprint now (or were in it at completion, for a closed sprint) and were not in it when it started.

Syntax

issue in addedAfterSprintStart(123)
issue not in addedAfterSprintStart(123)

Examples

sprint = 123 AND issue in addedAfterSprintStart(123)

The issues added to sprint 123 after it started that are still in it.

sprint = 123 AND issue not in addedAfterSprintStart(123)

The issues that were in sprint 123 when it started and are still in it.

Notes

  • An issue that was in the sprint at start, was removed and was put back is not counted as added (same as the Sprint Report).
  • An issue created directly inside the sprint after it started counts as added.
  • An issue added after start and taken out again still counts as added (same as the Sprint Report). It is also in removedAfterSprintStart.
  • For a closed sprint, changes after completion are ignored.
  • Works for sprints that ended before installation.

removedAfterSprintStart(sprintId)

Returns issues that were in the sprint at some point after it started and are not in it now (or at completion, for a closed sprint).

Syntax

issue in removedAfterSprintStart(123)
issue not in removedAfterSprintStart(123)

Example

issue in removedAfterSprintStart(123) AND project = ABC

Notes

  • Cannot be shown for a sprint that ended before installation (error).
  • For a sprint that started before installation, the first call needs a one-time collection that can take a few hours (see "still being collected" below).
  • Moving unfinished issues to the next sprint at completion is not a removal.

sprintsEndedBetween(from, to)

Returns issues in sprints that were completed between two dates, both days included.

Syntax

issue in sprintsEndedBetween("2026-09-01", "2026-09-30")
issue not in sprintsEndedBetween("2026-09-01", "2026-09-30")

Rules

  • Dates are YYYY-MM-DD and are read as UTC days.
  • It uses the completion date, not the planned end date.
  • Right after installation the function loads past sprints in the background. Until that finishes it tells you to try again in about an hour.
  • More than 1,000 sprints in the range returns an error. Use a shorter range.

in and not in

not in returns every issue that in does not return. It is not limited to the sprint. Add a condition when you want a narrower set.

You writeYou get
issue in addedAfterSprintStart(123)Issues added after sprint 123 started (including those taken out again)
issue not in addedAfterSprintStart(123)Every issue except those. Usually combine with sprint = 123
issue in removedAfterSprintStart(123)Issues taken out of sprint 123 after it started
issue not in removedAfterSprintStart(123)Every issue except those
issue in sprintsEndedBetween(a, b)Issues in sprints completed in that range
issue not in sprintsEndedBetween(a, b)Every issue except those

Error messages and what they mean

Message (start of text)MeaningWhat to do
Sprint JQL functions: the app license is not active.The license is not active (for example, a trial ended).Start or renew the license.
<function>() supports only the "in" and "not in" operators.You used =, != or another operator.Use in or not in.
<function>() needs one sprint ID (a number), for example <function>(123).The argument is missing, or is a name instead of an ID.Pass the numeric sprint ID.
sprintsEndedBetween() needs two dates in YYYY-MM-DD format (UTC, both days included)...Dates are missing or in another format.Write both dates as "YYYY-MM-DD".
Sprint <id> was not found.No sprint with that ID, or you cannot see it.Check the ID.
Sprint <id> started before this app was installed, so removed issues are still being collected. Please try again in a few hours.The sprint started before installation. The one-time collection is still running.Try again later. The answer replaces this message when ready.
Sprint <id> started before this app was installed and has too many candidate issues (over 3,000)...The one-time collection would need more than 3,000 candidate issues. We return an error rather than a partial result.Not available for this sprint. Sprints that start after installation have no such limit.
Sprint <id> ended before this app was installed, so removed issues cannot be shown.The sprint was completed before installation.Not available. Works for sprints that end after installation.
sprintsEndedBetween() is still loading past sprints after installation. Please try again in about an hour.The first load after installation is not finished.Try again later.
More than 1,000 sprints ended in this date range. Please use a shorter range.Too many sprints in the range.Shorten the range.
More than 1,000 issues were removed from sprint <id>... too many for a JQL function.A function can return at most 1,000 values (Jira limit).Not available for this sprint.
Sprint <id> has too many issues (...). This is too many for a JQL function.Same 1,000-value limit applies to added.Not available for this sprint.
Could not read data from Jira (...). Please try again later.A Jira API call failed.Try again later. If it keeps happening, contact support.

Note: Jira may keep an answer, including a message, for a saved search until the function is re-evaluated. If a message stays after the cause has gone, edit and re-run the search, and contact support if it persists.