How to jql in jira
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 4, 2026
Key Facts
- JQL allows you to search for Jira issues using a specific syntax.
- Common JQL fields include project, status, assignee, reporter, and created date.
- You can combine multiple conditions using operators like AND, OR, and NOT.
- JQL supports functions like `currentUser()`, `membersOf()`, and `now()` for dynamic searching.
- Jira's Advanced Search feature provides a user-friendly interface for building JQL queries.
What is JQL in Jira?
JQL, which stands for Jira Query Language, is a specialized search language developed by Atlassian for their Jira software. It's designed to help users efficiently find and filter issues within a Jira project. Think of it as a more advanced and flexible way to search compared to simple keyword searches. JQL allows you to construct complex queries that can pinpoint specific issues based on a wide range of criteria, making it an indispensable tool for project managers, developers, testers, and anyone who needs to manage or track work in Jira.
Why Use JQL?
The primary benefit of using JQL is its power and precision. While Jira's basic search can find issues by keywords or simple fields, JQL unlocks the ability to:
- Filter precisely: Identify issues that meet very specific conditions, such as all bugs assigned to you in the 'Project Alpha' that were reported in the last week and have a priority of 'Highest'.
- Create advanced dashboards and reports: JQL queries are the backbone of many Jira gadgets and reports, allowing you to visualize specific sets of data.
- Automate workflows: JQL can be used in automation rules to trigger actions based on specific issue criteria.
- Save common searches: Once you create a useful JQL query, you can save it as a filter for repeated use.
- Improve team collaboration: By sharing precise filters, teams can ensure everyone is looking at the same set of relevant issues.
Basic JQL Syntax and Common Fields
JQL queries typically follow a structure of field operator value. Here are some of the most commonly used fields and operators:
Common Fields:
project: The name or key of the project (e.g.,project = "Project Alpha"orproject = PA).status: The current status of the issue (e.g.,status = "In Progress").assignee: The user assigned to the issue (e.g.,assignee = currentUser(),assignee = "John Doe").reporter: The user who reported the issue (e.g.,reporter = "Jane Smith").created: The date the issue was created (e.g.,created > "2023/01/01").updated: The date the issue was last updated (e.g.,updated < "2023/12/31").priority: The priority level of the issue (e.g.,priority = Highest).component: The component(s) associated with the issue (e.g.,component = "UI").fixVersion: The version the issue is targeted for (e.g.,fixVersion = "v1.2").sprint: The sprint the issue belongs to (e.g.,sprint = "Sprint 5").textor*: Searches across all text fields (e.g.,text ~ "bug"or* ~ "bug").
Common Operators:
=: Equal to!=: Not equal to>: Greater than<: Less than>=: Greater than or equal to<=: Less than or equal toIN: Matches any value in a list (e.g.,status IN ("Open", "In Progress")).NOT IN: Does not match any value in a list.IS EMPTY: Field has no value.IS NOT EMPTY: Field has a value.~: Contains (fuzzy text search).
Combining JQL Clauses
You can create more sophisticated searches by combining multiple conditions using logical operators:
AND: Both conditions must be true (e.g.,project = "Project Alpha" AND status = "Open").OR: Either condition can be true (e.g.,assignee = currentUser() OR reporter = currentUser()).NOT: Negates a condition (e.g.,status NOT IN ("Closed", "Resolved")).
Parentheses () can be used to group clauses and control the order of operations, similar to mathematical expressions. For example: project = "Project Beta" AND (status = "To Do" OR status = "In Progress").
JQL Functions
JQL offers powerful functions that make your queries dynamic and context-aware. Some popular ones include:
currentUser(): Refers to the currently logged-in user.membersOf("group name"): Finds issues assigned to members of a specific Jira group.now(): Represents the current date and time.startOfDay("yyyy-MM-dd"),endOfDay("yyyy-MM-dd"): Useful for date-based queries.earliestUnreleasedVersion("project key"): Finds the earliest unreleased version for a project.
Example using functions: assignee = currentUser() AND created >= startOfDay("2023-10-26") finds all issues assigned to you that were created today.
Using JQL in Jira
Jira provides two main ways to use JQL:
- Basic Search: Jira's default search interface allows you to build queries using dropdowns and simple text fields. Jira translates these selections into JQL behind the scenes. This is great for beginners or simple searches.
- Advanced Search: Located next to the Basic Search option, the Advanced Search mode allows you to directly type or paste JQL queries. This is where you gain the full power of JQL. You'll see auto-completion suggestions as you type, which helps in building correct queries.
Once you have a JQL query, you can use it to:
- View issues in the Issue Navigator.
- Save the query as a filter.
- Use the filter in dashboards, boards (like Kanban or Scrum), and reports.
Tips for Effective JQL Searching
- Start Simple: Begin with basic queries and gradually add complexity.
- Use Auto-completion: Leverage Jira's built-in suggestions in Advanced Search.
- Test Your Queries: Run your JQL query and review the results to ensure it returns what you expect.
- Understand Your Data: Know the names of your projects, statuses, components, and custom fields.
- Use Quotes: If your search term contains spaces (e.g., project names, user names), enclose it in double quotes (
"). - Consult Jira Documentation: For a complete list of fields, operators, and functions, refer to Atlassian's official documentation.
Mastering JQL can significantly enhance your productivity and ability to manage issues effectively within Jira.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
Missing an answer?
Suggest a question and we'll generate an answer for it.