Going Stellar

Home/JQL reference

JQL function

currentUser() in JQL: syntax and examples

currentUser() resolves to the person who is logged in and running the query. Put it in a saved filter or a dashboard gadget and every viewer sees their own work items. It replaces typing a name or account ID into the query.

Syntax

c
u
r
r
e
n
t
U
s
e
r
(
)

Works with

  • Fields: Assignee, Reporter, Voter, Watcher, Creator, custom fields of type User
  • Operators: =, !=
  • Not with: ~, !~, >, >=, <, <=, IS, IS NOT, IN, NOT IN, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

Examples

assignee = currentUser() AND statusCategory != Done ORDER BY priority DESC

A personal to-do list: everything assigned to you that is not finished, most urgent first.

Run on Jira Cloud on .

reporter = currentUser() AND assignee != currentUser()

Work you raised and handed to someone else. A good list to check before a status meeting, to chase what you are waiting for.

Run on Jira Cloud on .

assignee = currentUser() AND project = WEB AND status = "In Progress"

What you have in flight on the website project, for your own stand-up notes.

Run on Jira Cloud on .

watcher = currentUser() AND updated >= startOfDay("-7d")

Items you follow that moved in the last week. It catches changes to work you do not own.

Run on Jira Cloud on .

creator = currentUser() AND created >= startOfWeek() ORDER BY created DESC

Items you created since the start of this week, newest first. Handy as a weekly check of your own intake.

Run on Jira Cloud on .

Pitfalls

  • Only = and != are supported. The docs list IN, NOT IN and IS as unsupported with this function.
  • assignee ~ currentUser() is rejected: "The operator '~' is not supported by the 'assignee' field."
  • The function needs a logged-in user. A saved filter that anonymous visitors will open cannot use it.
  • Two people opening the same filter get different results. That is the point, but it also means a screenshot of the result list is not proof of what a colleague sees.

Ready-made queries

Questions and answers

How do I show only my own issues in a Jira filter?

Use assignee = currentUser(). Add statusCategory != Done to hide finished work.

Sources

  1. JQL functions (Atlassian Support, Jira Cloud)
  2. JQL fields (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages