JQL Search Examples for /jira-search
Quick Reference
The /jira-search command automatically prepends project = SRVKP AND to your query, so you can keep searches concise!
/jira-search status=Blocked
→ Expands to: project = SRVKP AND status=Blocked
To search other projects, include project in your query:
/jira-search project=KONFLUX AND assignee=currentUser()
Common Searches
By Status
My open issues:
/jira-search assignee=currentUser() AND status!=Done
Blocked issues:
/jira-search status=Blocked
In code review:
/jira-search status="Code Review"
Multiple statuses:
/jira-search status IN ("To Do", "In Progress", "Blocked")
Not done:
/jira-search status!=Done
By Priority
Critical and blocker issues:
/jira-search priority IN (Blocker, Critical)
High priority open issues:
/jira-search priority IN (Major, Critical) AND status!=Done
Unassigned high priority:
/jira-search priority=Critical AND assignee=EMPTY
By Type
All bugs:
/jira-search type=Bug
Open epics:
/jira-search type=Epic AND status!=Done
Tasks and stories:
/jira-search type IN (Task, Story)
Not bugs:
/jira-search type!=Bug
By Assignee
My issues:
/jira-search assignee=currentUser()
Unassigned issues:
/jira-search assignee=EMPTY
Someone else’s issues:
/jira-search assignee="Vincent Demeester"
Team issues (multiple people):
/jira-search assignee IN ("Alice", "Bob", "Charlie")
By Time
Created in last 7 days:
/jira-search created >= -7d
Updated in last week:
/jira-search updated >= -1w
Created this month:
/jira-search created >= startOfMonth()
Not updated in 30 days:
/jira-search updated <= -30d
Created between dates:
/jira-search created >= "2026-01-01" AND created <= "2026-01-31"
By Labels
Has specific label:
/jira-search labels="2026-focus"
Has any of these labels:
/jira-search labels IN ("bug", "urgent", "security")
Release notes pending:
/jira-search labels="release-notes-pending"
Documentation needed:
/jira-search labels="docs-pending"
By Reporter
Issues I reported:
/jira-search reporter=currentUser()
Customer-reported issues:
/jira-search labels="customer-reported"
Advanced Searches
Epic Management
All issues in an epic:
/jira-search "Epic Link"=SRVKP-1000
Epics with no children:
/jira-search type=Epic AND "Epic Link" IS EMPTY
Issues not in any epic:
/jira-search type!=Epic AND "Epic Link" IS EMPTY
Stale Issues
Untouched in 60 days:
/jira-search updated <= -60d AND status!=Done
Old “To Do” items:
/jira-search status="To Do" AND created <= -90d
Stale in progress:
/jira-search status="In Progress" AND updated <= -14d
Workflow Issues
Stuck in code review:
/jira-search status="Code Review" AND updated <= -7d
Blocked for a while:
/jira-search status=Blocked AND updated <= -3d
Waiting on someone:
/jira-search status=Waiting
Team Planning
Unassigned open tasks:
/jira-search type=Task AND assignee=EMPTY AND status!=Done
High priority unassigned:
/jira-search priority IN (Critical, Major) AND assignee=EMPTY
Issues needing triage:
/jira-search status="To Do" AND assignee=EMPTY AND created <= -7d
Bug Tracking
Open bugs by priority:
/jira-search type=Bug AND status!=Done ORDER BY priority DESC
Recent bugs:
/jira-search type=Bug AND created >= -7d
Unassigned bugs:
/jira-search type=Bug AND assignee=EMPTY AND status!=Done
Critical bugs:
/jira-search type=Bug AND priority IN (Blocker, Critical)
Component Focus
Issues in specific component:
/jira-search component="Pipelines"
Issues with no component:
/jira-search component IS EMPTY
Text Searches
Search in summary:
/jira-search summary ~ "authentication"
Search in description:
/jira-search description ~ "CVE"
Search anywhere:
/jira-search text ~ "security vulnerability"
Complex Queries
Sprint Planning
Ready for sprint:
/jira-search status="To Do" AND assignee=EMPTY AND priority IN (Major, Critical) ORDER BY priority DESC
Current work:
/jira-search assignee=currentUser() AND status IN ("In Progress", "Code Review")
Completed this week:
/jira-search status=Done AND updated >= -7d AND assignee=currentUser()
Release Planning
Issues for next release:
/jira-search fixVersion="2.1.0" AND status!=Done
Release blockers:
/jira-search fixVersion="2.1.0" AND priority=Blocker
Needs release notes:
/jira-search labels="release-notes-pending" AND status=Done
Quality Focus
Issues with no acceptance criteria:
/jira-search type=Story AND description !~ "Acceptance Criteria"
Long-running issues:
/jira-search status="In Progress" AND created <= -30d
Frequently reopened:
/jira-search status changed to "To Do" AFTER -7d
JQL Operators
| Operator | Meaning | Example |
|---|---|---|
= |
Equals | status = "To Do" |
!= |
Not equals | status != Done |
> |
Greater than | priority > Minor |
< |
Less than | created < -30d |
>= |
Greater or equal | updated >= -7d |
<= |
Less or equal | created <= "2026-01-01" |
IN |
In list | status IN ("To Do", "In Progress") |
NOT IN |
Not in list | type NOT IN (Epic, Sub-task) |
~ |
Contains | summary ~ "authentication" |
!~ |
Not contains | description !~ "deprecated" |
IS EMPTY |
Field empty | assignee IS EMPTY |
IS NOT EMPTY |
Field set | "Epic Link" IS NOT EMPTY |
JQL Functions
| Function | Description | Example |
|---|---|---|
currentUser() |
Current user | assignee = currentUser() |
startOfDay() |
Start of today | created >= startOfDay() |
endOfDay() |
End of today | created <= endOfDay() |
startOfWeek() |
Start of this week | updated >= startOfWeek() |
startOfMonth() |
Start of this month | created >= startOfMonth() |
now() |
Current time | updated >= now() - 1h |
Date Formats
| Format | Example | Description |
|---|---|---|
-Nd |
-7d |
N days ago |
-Nw |
-2w |
N weeks ago |
-Nm |
-1m |
N months ago |
YYYY-MM-DD |
2026-01-15 |
Specific date |
"YYYY-MM-DD HH:MM" |
"2026-01-15 14:30" |
Date and time |
Sorting
Add ORDER BY to sort results:
# By priority (highest first)
/jira-search status!=Done ORDER BY priority DESC
# By creation date (newest first)
/jira-search assignee=currentUser() ORDER BY created DESC
# Multiple fields
/jira-search type=Bug ORDER BY priority DESC, created ASC
Tips
- Quote multi-word values:
status = "Code Review" - Quote field names with spaces:
"Epic Link" = SRVKP-1000 - Use currentUser(): Instead of your username
- Combine with AND/OR: Build complex queries
- Test incrementally: Start simple, add conditions
Common Patterns
My work today:
/jira-search assignee=currentUser() AND updated >= startOfDay()
Needs attention:
/jira-search assignee=currentUser() AND status IN (Blocked, Waiting, "Code Review")
Team capacity:
/jira-search assignee=EMPTY AND status="To Do" AND priority IN (Major, Critical)
Cleanup candidates:
/jira-search status="To Do" AND assignee=EMPTY AND created <= -90d
Project-Specific Searches
Remember: These automatically get project = SRVKP AND prepended!
For other projects:
/jira-search project=KONFLUX AND status=Blocked
Multiple projects:
/jira-search project IN (SRVKP, KONFLUX) AND assignee=currentUser()
Resources
- Full JQL Reference: https://issues.redhat.com/secure/JiraJQLHelp.jspa
- Jira CLI Docs: https://github.com/ankitpokhrel/jira-cli