Included JQL Functions

ScriptRunner provides a large number of out-of-the-box JQL functions. Unlike most of ScriptRunner features, these included functions are available to all users on an instance, not just administrators.

If you would like to view JQL functions by category, see the following pages:

If you would like to view all available JQL functions, see the following table:

The links in the table below lead to category pages, where you can find information on what the JQL function is, along with examples, supported operators, and performance considerations.

JQL FunctionDescription
addedAfterSprintStartShow issues that were added to the named board after the named sprint started (or all active sprints if a second argument is not provided).
aggregateExpressionCalculate a summary or aggregate data point.
archivedVersionsReturn issues with versions that have been archived.
commentedFind issues by querying on comments, for example, when, by which user, etc.
completeInSprintShow complete issues in the named sprint for the specified board (or all active sprints if a second argument is not provided).
componentMatchMatch the component name by regular expression.
dateCompareCompare two dates on the same issue.
earliestUnreleasedVersionByReleaseDateReturn issues that have an unreleased version set which is next due for release.
epicsOfFind epics of issues returned by the subquery.
expressionUse complex date, estimate, or numeric expression to compare attributes of fields. 
fileAttachedFind issues by querying on attachments, for example, when, by which user, etc.
hasAttachmentsReturn issues with attachments. You can optionally specify file types or the number of attachments.
hasCommentsGet issues with comments or with the specified number of comments.
hasLinksFind issues with links.
hasLinkTypeFind issues with the specified link type.
hasRemoteLinksFind issues with links to remote content.
hasSubtasksFind issues with subtasks.
inactiveUsersReturn issues with a user field containing inactive users.
incompleteInSprintReturn issues that are incomplete in the specified sprint.
issueFieldExactMatchMatch an issue field by exact string value.
issueFieldMatchMatch an issue field by regular expression.
issuePickerField

Find issues based on the issues selected in the specified Issue Picker field.

issuesInEpicsFind issues linked to epics matched by the subquery.
jiraUserPropertyEqualsReturn active and inactive users with a matching property value.
lastCommentFind issues by querying only on the last comment.
lastUpdatedFind issues by the last update, for example, when, by which user, etc.
linkedIssuesOfFind linked issues matched by the subquery.
linkedIssuesOfRecursiveFind ALL recursively linked issues matched by the subquery.
linkedIssuesOfRecursiveLimitedFind recursively linked issues matched by the subquery, restricted by traversal depth. 
linkedIssuesOfRemoteReturn issues linked to the given remote link.
linkedIssuesOfAllFind linked issues matched by the subquery. Functionally the same as linkedIssuesOf except it also includes subtasks and epic links when no link type is specified.
linkedIssuesOfAllRecursive

Find ALL recursively linked issues matched by the subquery. Functionally the same as linkedIssuesOfRecursive except it also includes subtasks and epic links when no link type is specified.

linkedIssuesOfAllRecursiveLimited

Find ALL recursively linked issues matched by the subquery, restricted by traversal depth. Functionally the same as linkedIssuesOfRecursiveLimited except it also includes subtasks and epic links when no link type is specified.

memberOfRoleReturn issues where the value of a user field is a member of the given role.
myProjectsReturn projects in which you are a member.
nextSprintReturn issues from the first unstarted sprint on the specified board.
overdueFind issues by unreleased versions with release date in the past.
parentsOfGet the parents of issues matched by the subquery.
portfolioChildrenOfGet the portfolio/roadmaps child issues matched by the subquery.
portfolioParentsOfGet the portfolio/roadmaps parent issues matched by the subquery.
previousSprintReturn issues from the last completed sprint on this board.
projectMatchMatch the project name by regular expression.
projectsOfTypeFind issues in projects of a particular type.
recentProjectsFind projects in your recent history.
releaseDateFind issues by version release date.
removedAfterSprintStartReturn issues removed from the sprint after the sprint start.
startDateFind issues by version start date.

subtasksOf

Get the subtasks of issues matched by the subquery.
versionMatchMatch the version name by regular expression.
workLoggedFind issues by querying on worklogs, for example, when, by which user, etc.