JQL Queries in Jira: A Step-by-Step Guide with Examples
Struggling to find the right Jira issues? Learn to write a JQL query in Jira with step-by-step examples. Read now and search smarter.
Jira issues can pile up quickly, making it hard to spot overdue work, find a particular bug, or see what your team completed last week. Opening issues one by one takes time, and broad searches can return more results than you can use.
Jira Query Language, or JQL, gives you a precise way to narrow those results. But here's the truth: a small syntax mistake can leave you with an empty list or a misleading one. This guide walks you through writing a JQL query in Jira, from your first filter to practical examples and troubleshooting. You’ll learn how to combine conditions, sort results, and save searches your team can reuse. Start with a simple query, then add detail only when you need it.
How to Write a JQL Query in Jira
JQL searches Jira issues using fields, operators, and values. Build a useful query in a few manageable steps: choose a field, compare it with a value, add conditions, and check the results.
Open issue search. In Jira, open the issue search or advanced search view. If the Basic search view appears, switch to Advanced to enter JQL directly.
Choose a field. Select the issue detail you want to search, such as project, status, assignee, priority, or created.
Add an operator and value. For example, project = PAY searches for issues in the project with key PAY. Use quotation marks around values containing spaces, such as status = "In Progress".
Combine conditions when needed. Add AND to require both conditions or OR to allow either condition. For example, project = PAY AND status = "In Progress" narrows results to in-progress issues in PAY.
Run the query and review the results. Check whether the returned issues match your goal. If the result is empty, confirm the project key, field name, spelling, and value.
Sort the results. Add an ORDER BY clause, such as ORDER BY updated DESC, to place recently updated issues first.
Save the search if you’ll reuse it. Save a useful query as a filter, give it a clear name, and check its sharing settings before sending it to teammates.
For example, this query finds active payment-project work and places recently updated issues first: project = PAY AND status = "In Progress" ORDER BY updated DESC.

JQL Syntax: Fields, Operators, and Conditions
JQL clauses follow a readable pattern: field, operator, and value. You can add multiple clauses and control how Jira combines them. Here's why: understanding these parts makes it easier to build queries without guessing.
Fields identify what Jira should check
A field represents an issue property. Common fields include project, assignee, reporter, issuetype, priority, status, created, and updated.
Custom fields can also appear in JQL. Their names and availability depend on your Jira configuration, so use Jira’s autocomplete suggestions when you’re unsure which field to select.
Operators compare a field with a value
= and != check whether a field matches or differs from a value.
IN and NOT IN check against several possible values, such as priority IN (High, Highest).
>, >=, <, and <= compare dates or supported numeric fields.
~ and !~ search text fields for matching terms or phrases.
IS EMPTY and IS NOT EMPTY check whether a field has a value.
For example, assignee IS EMPTY finds unassigned issues. To locate issues without a resolution, try resolution IS EMPTY.
Boolean operators control how clauses work together
AND requires every joined condition to match. OR allows either condition to match, while NOT excludes results that meet a condition.
Use parentheses to make mixed conditions easier to read. For example, project = PAY AND (priority = High OR priority = Highest) returns high-priority issues from PAY.
When you combine conditions without parentheses, the order of evaluation can affect the results. Use parentheses whenever you want the intended grouping to be obvious.
Practical JQL Query Examples
Examples are a quick way to learn how small changes affect a search. The queries below cover common team tasks; replace the project key or values with ones used in your Jira site.
Find work assigned to you
Use currentUser() to search for issues assigned to the account you’re currently using:
assignee = currentUser() AND resolution IS EMPTY
This can help you review unresolved work without entering your account name. Add a sort clause if you want recent changes at the top: ORDER BY updated DESC.
Find recently created bugs
To review bugs created during the past week, use a date range:
issuetype = Bug AND created >= -7d ORDER BY created DESC
The relative date value -7d represents the previous seven days. Jira also supports date functions such as startOfMonth() for searches tied to calendar periods.
Find issues containing a phrase
Use the text-search operator on a supported text field. For example, summary ~ "login timeout" searches summaries for matching text.
Text matching behavior can differ from exact equality. If the results look too broad or too narrow, try a shorter term or check Jira’s field suggestions and search behavior.
Find work connected to a release
If your Jira project uses versions, search for issues assigned to a particular release with a query such as fixVersion = "Version 2.4". Add a status condition to focus on unfinished release work: fixVersion = "Version 2.4" AND status != Done.
Version names and workflow statuses vary across projects. Confirm the exact values in your Jira site before relying on a query for a release review.
Show issues reported or assigned to you
Parentheses help when you want to match either of two conditions while keeping another condition fixed:
project = PAY AND (reporter = currentUser() OR assignee = currentUser())
This returns payment-project issues that you reported or that are assigned to you. Without the parentheses, mixed AND and OR conditions can produce unexpected results.
Using Functions, Dates, and Sorting
Once basic clauses make sense, functions and date expressions can help you create searches that adapt over time. Let me explain: these features save you from updating a query every time the calendar moves or the current account changes.
Use functions for dynamic searches
currentUser() is useful for personal work queues because it refers to the account running the search. Date functions, including startOfDay() and startOfMonth(), can define time ranges relative to the current date.
For example, created >= startOfMonth() searches for issues created since the beginning of the current month. Function availability can vary by Jira edition, field, or configuration, so check the suggestions Jira offers as you type.
Choose date ranges that fit the question
A relative range such as created >= -7d is convenient for rolling weekly reviews. A fixed date range can be better when you need to examine a specific period, such as created >= "2025-01-01" AND created < "2025-02-01".
Use a clear boundary when comparing periods. For instance, the second query includes issues created on or after January 1 and before February 1.
Sort results with ORDER BY
Add ORDER BY at the end of the query to arrange matching issues. For example, ORDER BY priority DESC, updated DESC sorts by priority first and uses the update time to arrange issues within each priority.
Choose a sort order that supports the task. A triage queue might put high-priority issues first, while a recent-activity review may sort by updated DESC.
Save, Share, and Maintain Jira Filters
A useful JQL query can become a repeatable team view when you save it as a filter. You might be wondering: should every search become a saved filter? Usually, save the searches you revisit or need to share, and leave one-off searches unsaved.
Name filters so teammates understand them
Use a descriptive name such as “PAY unresolved high-priority issues” instead of “My filter.” A clear name tells teammates what the search covers before they open it.
Before sharing, check the filter’s permissions. A saved search may be private or available to selected people or groups, depending on your Jira setup.
Keep filters useful as projects change
Queries can become stale when teams rename statuses, change release versions, or adjust custom fields. Review important filters when a workflow changes, especially searches used in reports or regular meetings.
For example, a filter that checks status = "In Progress" may need attention if the team replaces that status with “Doing.” A quick review prevents a trusted filter from quietly returning incomplete results.
JQL in Jira: A Workflow Alternative with ONES.com
JQL is useful when your team needs to search Jira issues. If you’re also reviewing the wider project-management setup around those searches, ONES.com offers a separate platform option for project management and knowledge management. ONES Project is a Jira alternative, while ONES Wiki is a Confluence alternative; they are sold separately.

Value Proposition
ONES.com brings project work and team knowledge management into one platform, with ONES Assistant powered by AI. Teams can choose cloud or self-hosted deployment and organize project work with configurable workflows.
Core Capabilities
Fragmented project tracking: ONES Project provides project management capabilities, including sprint management, so teams can organize issues and delivery work in one PM environment.
Workflows that don’t match team processes: Custom workflows and fields let teams shape project tracking around their own stages and details.
Limited visibility into progress: Built-in reporting helps teams review project status without relying on extra reporting add-ons.
Repetitive project tasks: Automation can handle supported routine actions, reducing manual follow-up for recurring workflow events.
Jira migration concerns: Jira-compatible workflows can make it easier to carry familiar workflow patterns into an evaluation of ONES Project.
Too many separate extensions: Native capabilities across workflows, fields, sprint management, reporting, and automation can reduce reliance on plugins.
Deployment restrictions: Choose Cloud, On-Premise, Private Cloud, or Air-gapped deployment to fit your organization’s operating requirements.
Need for self-hosted control: ONES.com offers full feature parity between cloud and self-hosted versions, so teams can assess deployment without giving up feature access.
Want to evaluate before wider adoption: The free plan supports up to 30 seats, allowing a smaller team to explore the platform.
Application Scenarios
A software team evaluating a Jira alternative could compare its current project workflow with ONES Project’s Jira-compatible workflows, custom fields, sprint management, and reporting. The team can check whether the available capabilities fit its day-to-day process before considering a broader change.
An organization with restricted network requirements could assess an On-Premise, Private Cloud, or Air-gapped deployment. A team that also needs a knowledge base can evaluate ONES Wiki separately from ONES Project.
Common JQL Challenges and How to Fix Them
Most query problems come down to field values, grouping, or search scope. A quick check of each part usually reveals why the results differ from what you expected.
The query returns no issues. Check that the project key and status value exist, and confirm that the field supports the operator you used. Try removing one condition at a time to identify which clause removes the results.
The query returns too many issues. Add a project, date, or status condition to narrow the scope. For text searches, use a more specific phrase or limit the search to a field such as summary.
AND and OR produce unexpected results. Add parentheses to make the intended grouping explicit. For example, put alternative priority values inside parentheses after the project condition.
Jira flags a field or function as invalid. Use autocomplete to confirm the available spelling and syntax. Custom fields, functions, and supported operators can depend on your Jira configuration.
A teammate sees different results. Check that both accounts can view the same projects and that the saved filter has suitable sharing permissions. Jira access restrictions can affect which issues appear.
FAQs About JQL Queries in Jira
What is the difference between JQL and basic search?
Basic search lets you select common fields and values through Jira’s interface. Advanced search lets you write or edit the query directly in JQL. Both can help you find issues, but JQL gives you more control over combining conditions, using functions, and sorting results. A basic search may be the quickest choice for a simple lookup; advanced search is helpful when your search needs precise logic.
Can I use JQL to search across multiple Jira projects?
Yes, if your account can access the projects and your query includes the relevant project keys or other conditions. For example, project IN (PAY, WEB) searches across two projects. You can add a shared condition, such as status != Done, to narrow the results. The issues visible to you still depend on your Jira permissions.
How do I search for issues with no value in a field?
Use IS EMPTY for fields without a value. For example, assignee IS EMPTY finds unassigned issues, while resolution IS EMPTY finds issues without a resolution. The field must support empty-value searches. If Jira reports an error, use its autocomplete suggestions and check whether that field is available in your project.
Can I save a JQL query and share it with my team?
Yes. Save the search as a filter, choose a descriptive name, and review its permissions. The filter’s sharing options depend on your Jira setup and your access rights. Teammates also need permission to view the issues returned by the query. A saved filter keeps a search easy to revisit, while clear naming helps people understand its purpose.
Conclusion
JQL helps you turn a broad Jira issue list into a focused search. Start with one field and value, add AND or OR when needed, then use parentheses and sorting to make the results easier to interpret.
If a query misses issues or returns too many, check its values, permissions, and grouping before rebuilding it. Save searches you use repeatedly, and review them when project workflows change. With a few practical patterns, you can find Jira work faster and build searches that support everyday team decisions.