English

JQL functions

Documentation

Flexible JQL adds 55 JQL functions. Each one is used with issue in, like Jira’s own functions, and can be combined with any other JQL. The workbench lists every function with its arguments, a description and three examples. A JQL function takes arguments and returns the set of issues you then search with issue in.

Find a function by task

Task Functions
Issues linked to a set of issues linkedTo, linkedToRecursive
Children, parents and epics childrenOf, parentsOf, epicsOf
Issues without subtasks withoutSubtasks
Added or removed after a sprint started addedAfterSprintStart, removedAfterSprintStart
Who changed or transitioned an issue changedBy, transitionedBy
Compare two date fields dateCompare

Hierarchy

childrenOf, childrenWhereParent, parentsOf, epicsOf, inEpics, subtasksOf, parentsOfSubtasks, withSubtasks, withoutSubtasks.

Find children at any depth, filter children by a field of their parent, find the epics of a set of issues, or find issues with or without subtasks.

issue in childrenWhereParent("project = ABC AND priority = Highest")
issue in withoutSubtasks("status != Done") AND type = Story

linkedTo, linkedToRecursive, withLinks, webLinkedTo, confluenceLinkedTo.

Follow links by type and direction, follow them level by level up to a depth, count links, or find issues by their web links and Confluence pages.

issue in linkedTo("project = ABC AND status = Blocked", "Blocks", "inward")

History, comments and work logs

changedBy, transitionedBy, timeInStatus, movedBetweenProjects, movedIssueType, commentedBy, commentedBetween, mentionedInComment, workLoggedBy, workLoggedBetween.

Find who changed or transitioned an issue, how long it spent in a status, which issues moved between projects or changed type, and who commented or logged work. A named person is read live and exactly. User arguments are Atlassian account IDs; the workbench user picker inserts them for you.

issue in timeInStatus("In Review", "", "4h", "-30d", "now()")

Sprints

addedToSprint, removedFromSprint, addedAfterSprintStart, removedAfterSprintStart, carriedOver, completedInSprint, incompleteInSprint, inSprint, nextSprint, previousSprint, lastClosedSprint, sprintsBetween, sprintsStartingIn, sprintOfIssueClosedBetween.

Track scope change, carry-over and completion per sprint, by board name or ID.

issue in carriedOver("ABC board", "Sprint 5")
issue in lastClosedSprint("ABC board") AND resolution is EMPTY

Text, dates, people, versions and components

textMatch, wildcardMatch, regexMatch, dateCompare, dateMatch, workingDaysBetween, fieldsCompare, aggregateCompare, membersOfGroups, groupsOf, membersOfProjectRole, componentLeads, componentMatch, projectMatch, versionMatch, withAttachments, withVersions.

Match exact text, wildcards and regular expressions, compare dates and fields, count working days against an administrator’s calendar, compare a number with the average of a group, and filter by group, project role, component, version or attachments.

issue in dateCompare("resolutiondate > duedate")
issue in workingDaysBetween("created", "resolutiondate", "<=", 2, "project = ABC")

Nesting

A function can take another function inside its query argument, with a depth limit and a cycle guard. Every query inside a function is checked by Jira’s own parser.

Results and limits

Functions that list issues return at most 1,000 of them and stop with a rewrite suggestion above that. See limits for the details and indexed fields for counts with no limit.