English

Limits

Documentation

Flexible JQL works within the limits Atlassian sets for Forge apps and for JQL functions. This page lists them, with the alternative for each.

1,000 issues per function

Jira silently ignores a function result that lists more than 1,000 issues, which would look like “no results”. Flexible JQL never lets that happen: a function that would list more stops with an error that suggests a rewrite, such as a narrower query or an indexed field. The error is shown by Check query in the workbench. In Jira’s own search bar a failed function shows an empty list, so use Check query when a result is unexpectedly empty.

Functions that return a condition, such as childrenOf, childrenWhereParent, inEpics and subtasksOf, have no limit on the issues they match. The indexed fields have no limit either.

Other limits

  • Web links are read for at most 300 web-linked issues per query. Add a stricter scope query, or use fjWebLinkCount > 0.
  • Named people are read live and exactly, for up to 5,000 candidate issues. Add a scope query on large sites.
  • Query time. Every query inside a function is checked by Jira’s parser and stops after 12 seconds with a message that says what to narrow.
  • Freshness. Jira delivers change events with a delay of up to about 3 minutes, so a change can take a few minutes to show in a saved filter or board.

Not available

  • Teams. Team functions are not available, because the Atlassian Teams API cannot be called by an app. Use the native Team field and team-based JQL, or the group and project role functions.
  • Pull requests. Pull request state and repository in JQL are not available, because Jira does not let apps read pull request details. Use Jira’s own development[pullrequests].open and development[pullrequests].all counts.
  • Workflow conditions. The workflow rule is a validator that blocks a transition with a message. A condition that hides the transition button is not available, because Forge conditions cannot run JQL.
  • Comment and work log visibility. Searching by the group or role a comment is restricted to is not available, because the answer would reveal restricted comments to people who cannot see them.
  • Your own comments with currentUser(). commentedBy cannot answer per viewer with currentUser(), because the app stores no account IDs on issues. Pass your own account ID instead; the workbench user picker inserts it.