The Adaptavist Group LogoDocumentation

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.

Tip:ScriptRunner JQL AI

If you're not sure where to start with JQL Functions or are in need of a quick search filter, try our ScriptRunner JQL AI.

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:

Note: The links in the table below lead to category pages, where you can find information on the JQL function, examples, supported operators, and performance considerations.
Tip:Fields, operators, and functions

Fields are required to form a search clause and are typically followed by an operator and then a function or a value. Most ScriptRunner JQL functions are preceded by the issueFunction field, however, some ScriptRunner JQL functions are preceded by other fields (as shown in the table below). In a clause that includes a ScriptRunner JQL function the operator must always be in or not in (for example issueFunctioninhasLinks("Blocks")).

For more information on fields, functions and operators check out the JQL Functions Tutorial.

JQL FunctionDescriptionField Prefix
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).issueFunction
aggregateExpressionCalculate a summary or aggregate data point.issueFunction
archivedVersionsReturn issues with versions that have been archived.component
commentedFind issues by querying on comments, for example, when, by which user, etc.issueFunction
completeInSprintShow complete issues in the named sprint for the specified board (or all active sprints if a second argument is not provided).issueFunction
componentMatchMatch the component name by regular expression.component
dateCompareCompare two dates on the same issue.issueFunction
earliestUnreleasedVersionByReleaseDateReturn issues with an unreleased version set that is next due for release.fixVersion
epicsOfFind epics of issues returned by the subquery.issueFunction
expressionUse complex date, estimate, or numeric expression to compare attributes of fields.issueFunction
fileAttachedFind issues by querying on attachments, for example, when, by which user, etc.issueFunction
hasAttachmentsReturn issues with attachments. You can optionally specify file types or the number of attachments.issueFunction
hasCommentsGet issues with comments or with the specified number of comments.issueFunction
hasLinksFind issues with links.issueFunction
hasLinkTypeFind issues with the specified link type.issueFunction
hasRemoteLinksFind issues with links to remote content.issueFunction
hasSubtasksFind issues with subtasks.issueFunction
inactiveUsersReturn issues with a user field containing inactive users.assignee
incompleteInSprintReturn issues that are incomplete in the specified sprint.issueFunction
issueFieldExactMatchMatch an issue field by exact string value.issueFunction
issueFieldMatchMatch an issue field by regular expression.issueFunction
issuePickerFieldFind issues based on the issues selected in the specified Issue Picker field.issueFunction
issuesInEpicsFind issues linked to epics matched by the subquery.issueFunction
jiraUserPropertyEqualsReturn active and inactive users with a matching property value.assignee
lastCommentFind issues by querying only on the last comment.issueFunction
lastUpdatedFind issues by the last update, for example, when, by which user, etc.issueFunction
linkedIssuesOfFind linked issues matched by the subquery.issueFunction
linkedIssuesOfRecursiveFind ALL recursively linked issues matched by the subquery.issueFunction
linkedIssuesOfRecursiveLimitedFind recursively linked issues matched by the subquery, restricted by traversal depth.issueFunction
linkedIssuesOfRemoteReturn issues linked to the given remote link.issueFunction
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.issueFunction
linkedIssuesOfAllRecursiveFind 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.issueFunction
linkedIssuesOfAllRecursiveLimitedFind 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.issueFunction
memberOfRoleReturn issues where the value of a user field is a member of the given role.issueFunction
myProjectsReturn projects in which you are a member.project
nextSprintReturn issues from the first unstarted sprint on the specified board.issueFunction
overdueFind issues by unreleased versions with release date in the past.fixVersion
parentsOfGet the parents of issues matched by the subquery.issueFunction
portfolioChildrenOfGet the portfolio/roadmaps child issues matched by the subquery.issueFunction
portfolioParentsOfGet the portfolio/roadmaps parent issues matched by the subquery.issueFunction
previousSprintReturn issues from the last completed sprint on this board.issueFunction
projectMatchMatch the project name by regular expression.project
projectsOfTypeFind issues in projects of a particular type.project
recentProjectsFind projects in your recent history.project
releaseDateFind issues by version release date.fixVersion
removedAfterSprintStartReturn issues removed from the sprint after the sprint start.issueFunction
startDateFind issues by version start date.fixVersion
subtasksOfGet the subtasks of issues matched by the subquery.issueFunction
versionMatchMatch the version name by regular expression.fixVersion
workLoggedFind issues by querying on worklogs, for example, when, by which user, etc.issueFunction

Search documentation

Start typing to search the docs.