English

Getting started

Documentation

This page walks through the first queries most teams write.

Flexible JQL functions work wherever JQL works: the issue search, saved filters, boards, dashboards and automation rules. Type one into the Jira search bar like any other JQL. For example, stories that still have an open subtask:

issue in withSubtasks("status != Done") AND type = Story

Or the issues added to the current sprint after it started:

issue in addedAfterSprintStart("ABC board")

2. Build a query in the workbench

Open Apps, then Flexible JQL. In the workbench you can:

  • Find a function by its name or by the task you want to do.
  • Fill its arguments in a form, with pickers for people, sprints and fields.
  • Check the query. Problems are explained in plain language, often with a one-click fix. Jira’s own search bar shows a failed function as an empty list, so Check query is the place to look when a result is unexpectedly empty.
  • Run it as you and see the issues straight away.
  • Explain it, to see how Jira reached the answer.
  • Combine functions in one query with “Add another function”.

3. Save it to the Library

Save a query with a name, a description and tags. Keep it private or share it with everyone on the site. Any saved query can become a Jira filter in one click, ready for a board or a dashboard gadget. The filter belongs to you and follows Jira’s sharing rules.

The Library also holds 44 ready-made queries, such as epics ready to close, work blocked by open bugs and issues resolved after their due date. Open one, adjust it and save your own copy.

4. Bring over existing queries

If your team has queries written for another JQL app, paste one into Convert in the workbench. It suggests the Flexible JQL equivalent, which you can check and run before you save it.

5. Use the searchable fields

For counts and parent values, the fj fields are often the simplest route, and they have no limit on the number of issues they match:

fjSubtaskCount > 2 AND fjParentStatusCategory = "In Progress" ORDER BY fjParentSummary

See indexed fields and sprint dates for the full picture.