Going Stellar

Home/JQL reference

JQL field

lastViewed in JQL: field syntax and examples

The lastViewed field holds the time a work item was last opened. You compare it with a date, a relative offset or a date function. Use it to rebuild a list of what you looked at recently, or to find open work that nobody has looked at in a while.

Syntax

lastViewed > "-1d"
lastViewed < "yyyy/MM/dd"
lastViewed >= "-1w" ORDER BY lastViewed DESC

Works with

  • Field type: DATE, no auto-complete
  • Operators: =, !=, >, >=, <, <=, IS, IS NOT, IN, NOT IN
  • Functions (with =, !=, >, >=, <, <=): currentLogin(), lastLogin(), now(), startOfDay(), startOfWeek(), startOfMonth(), startOfYear(), endOfDay(), endOfWeek(), endOfMonth(), endOfYear()
  • Not with: ~, !~, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

Examples

lastViewed > "-1d"

Work items viewed in the last day, for finding the ticket you had open yesterday.

Run on Jira Cloud on .

lastViewed >= "-1w" ORDER BY lastViewed DESC

A recently viewed list for the week, newest view first.

Run on Jira Cloud on .

lastViewed < "-4w" AND statusCategory != Done

Open work not looked at for a month, a candidate list for a backlog tidy-up.

Run on Jira Cloud on .

lastViewed > startOfDay() AND statusCategory != Done

Unfinished work opened since this morning.

Run on Jira Cloud on .

lastViewed > "-1d" AND project = WEB ORDER BY lastViewed DESC

The same recent list limited to one project.

Run on Jira Cloud on .

Pitfalls

  • Quotes change the meaning of a plain number. Without quotes it is read as milliseconds after 1970, and lastViewed > 1000 is accepted without any error and matches everything ever viewed. Quote offsets: "-1d" (checked on Jira Cloud, November 2026).
  • A date with no time means midnight, in your configured time zone. lastViewed < "2026/12/01" excludes anything viewed on 1 December itself.
  • One of the doc examples mixes two fields: lastViewed > "2010/12/12" and created < "2010/12/12 14:00" filters the second clause on created, not on the view time. For a view-time range use lastViewed in both clauses.
  • There is no history for this field. lastViewed WAS "x" returns "History searches do not support the 'lastViewed' field." and ~ is rejected too.

Questions and answers

How do I list recently viewed work items in JQL?

Use lastViewed >= "-1w" ORDER BY lastViewed DESC, and change the offset to widen or narrow the window.

Sources

  1. JQL fields (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages