Skip to content
JQL Query Builder logo

JQL Query Builder

Build and optimize JQL (Jira Query Language) queries for searching issues. Use when the user needs to search Jira issues, filter by complex criteria, find specific bugs or features, or when they mention JQL, queries, or searching Jira.

SKILL.md

Full skill instructions

JQL Query Builder

Expert assistance for constructing JQL (Jira Query Language) queries to search and filter Jira issues efficiently.

When to Use This Skill

  • User wants to search for specific issues
  • User needs to filter issues by multiple criteria
  • User mentions JQL or queries
  • User wants to find bugs, features, or tasks matching certain conditions
  • User needs help understanding JQL syntax

JQL Basics

Field Operators

OperatorDescriptionExample
=Equalsstatus = "In Progress"
!=Not equalspriority != Low
>, <Greater/​less thancreated > -7d
>=, <=Greater/​less or equalpriority >= High
~Contains textsummary ~ "login"
INMatches any valuestatus IN (Open, "In Progress")
NOT INDoesn't matchpriority NOT IN (Low)
IS EMPTYField is emptyassignee IS EMPTY
IS NOT EMPTYField has valuedueDate IS NOT EMPTY

Common Fields

  • project: Project key (e.g., project = PROJ)
  • status: Issue status (e.g., status = "In Progress")
  • priority: Priority level (e.g., priority = High)
  • assignee: Assigned user (e.g., assignee = currentUser())
  • reporter: Who created it (e.g., reporter = currentUser())
  • created: Creation date (e.g., created >= -30d)
  • updated: Last update (e.g., updated > -7d)
  • type: Issue type (e.g., type = Bug)
  • labels: Labels (e.g., labels = urgent)
  • summary: Title text (e.g., summary ~ "authentication")
  • description: Description text (e.g., description ~ "error")

Date Functions

  • -1d, -7d, -30d: Relative dates (days ago)
  • -1w, -4w: Weeks ago
  • startOfDay(), endOfDay(): Day boundaries
  • startOfWeek(), endOfWeek(): Week boundaries

User Functions

  • currentUser(): The logged-in user
  • membersOf("group-name"): Users in a group

Logical Operators

  • AND: Both conditions must be true
  • OR: Either condition must be true
  • NOT: Negate a condition

Common Query Patterns

My Open Issues

assignee = currentUser() AND status != Done

Recently Updated Bugs

type = Bug AND updated >= -7d ORDER BY updated DESC

High Priority Unassigned Issues

priority = High AND assignee IS EMPTY AND status != Done

Issues Created This Sprint

project = PROJ AND created >= -14d AND type IN (Story, Task)

Overdue Issues

dueDate < now() AND status != Done ORDER BY dueDate ASC

Issues Mentioning Specific Feature

(summary ~ "authentication" OR description ~ "authentication") AND status != Done

Team's Work This Week

assignee IN membersOf("dev-team") AND updated >= startOfWeek()

Epics Without Stories

type = Epic AND issueFunction NOT IN linkedIssuesOf("type = Story")

Building Complex Queries

Step-by-Step Approach

  1. Start with project:

    project = PROJ
    
  2. Add status filter:

    project = PROJ AND status IN ("To Do", "In Progress")
    
  3. Add assignee:

    project = PROJ AND status IN ("To Do", "In Progress") AND assignee = currentUser()
    
  4. Add time filter:

    project = PROJ AND status IN ("To Do", "In Progress") AND assignee = currentUser() AND created >= -30d
    
  5. Add sorting:

    project = PROJ AND status IN ("To Do", "In Progress") AND assignee = currentUser() AND created >= -30d ORDER BY priority DESC, updated DESC
    

Optimization Tips

Use Specific Fields

❌ Slow: text ~ "bug" ✅ Fast: summary ~ "bug" OR description ~ "bug"

Limit Date Ranges

❌ Slow: created <= now() ✅ Fast: created >= -90d

Use IN Instead of Multiple OR

❌ Verbose: status = "To Do" OR status = "In Progress" OR status = "Review" ✅ Clean: status IN ("To Do", "In Progress", "Review")

Order Matters for AND

Put most restrictive conditions first:

assignee = currentUser() AND status != Done AND type = Bug

Testing Queries

When I build a query for you, I'll:

  1. Explain the logic: Break down what each part does
  2. Test it: Use /​jira-search to verify results
  3. Refine: Adjust based on results
  4. Optimize: Suggest improvements for performance

Common Use Cases

Sprint Planning

project = PROJ AND status = "To Do" AND sprint IS EMPTY ORDER BY priority DESC

Bug Triage

type = Bug AND status = "To Do" AND priority IS EMPTY ORDER BY created DESC

Release Readiness

fixVersion = "v2.0" AND status != Done

Stale Issues

status = "In Progress" AND updated <= -30d

Blocked Work

status = Blocked OR labels = blocked ORDER BY priority DESC

Advanced Patterns

Find Issues Without Estimates

project = PROJ AND "Story Points" IS EMPTY AND type IN (Story, Task)

Parent Issues with Incomplete Subtasks

issueFunction IN parentsOf("status != Done")

Issues Mentioned in Comments

comment ~ "needs review"

Cross-Project Search

project IN (PROJ1, PROJ2, PROJ3) AND assignee = currentUser()

How I'll Help

When you need a JQL query, I will:

  1. Understand your requirements: What are you trying to find?
  2. Build the query: Construct JQL step-by-step
  3. Explain each part: Help you understand the syntax
  4. Test it: Run the query using /​jira-search
  5. Refine: Adjust based on results
  6. Save for reuse: Document the query for future use

Example Interaction

You: "Find all high-priority bugs assigned to me that were updated in the last week"

Me: "I'll build a JQL query for that:

type = Bug AND priority = High AND assignee = currentUser() AND updated >= -7d ORDER BY updated DESC

Breaking it down:

  • type = Bug: Only bugs
  • priority = High: High priority only
  • assignee = currentUser(): Assigned to you
  • updated >= -7d: Updated in last 7 days
  • ORDER BY updated DESC: Newest first

Let me search for these issues using /​jira-search..."

References

For more JQL details:

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View