# issueHistory() in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/issuehistory/

issueHistory() returns the work items you have opened recently, the same list that sits behind the Recent work menu, but up to 50 long instead of 5. Use it to get back to something you looked at yesterday and cannot name, or to filter that trail by project, status or assignee. Atlassian's current docs call the function workItemHistory(), and that name works as well.

## Syntax

```
issue in issueHistory()
issue in workItemHistory()
```

## Works with

- Fields: Issue (also written key)
- Operators: IN, NOT IN
- Not with: =, !=, ~, !~, >, >=, <, <=, IS, IS NOT, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

## Examples

```
issue in issueHistory() AND assignee = currentUser()
```

Work you looked at recently that is also yours. A quick way to rebuild your morning list after a day of jumping between tickets. Run on Jira Cloud on 2026-11-29.

```
issue in issueHistory() AND project = WEB AND statusCategory != Done
```

Open items on the website project that you opened lately. Useful when you remember reading a ticket but not its number. Run on Jira Cloud on 2026-11-29.

```
issue in issueHistory() ORDER BY updated DESC
```

Your viewing trail sorted by the last change, so the tickets other people touched after you looked at them come first. Run on Jira Cloud on 2026-11-29.

```
issue in workItemHistory() AND status = "In Progress" ORDER BY updated DESC
```

The same idea with the newer function name: in-flight items from your trail, freshest first. Run on Jira Cloud on 2026-11-29.

```
issue not in issueHistory() AND assignee = currentUser() AND statusCategory != Done
```

Your open work that you have not opened recently. It surfaces tickets that are assigned to you and have been sitting unread. Run on Jira Cloud on 2026-11-29.

```
issue in issueHistory() AND created >= startOfWeek("-1w")
```

Recently viewed items that were created since the start of last week. Narrows the trail to new tickets. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The docs example `work item in workItemHistory() AND assignee = currentUser()` is not valid JQL. Jira answers "Expecting operator but got 'item'". The JQL field is still called `issue` (or `key`), so write `issue in workItemHistory()` (checked on Jira Cloud, November 2026).
- The function only accepts `IN` and `NOT IN`. `issue = issueHistory()` fails with "Operator '=' does not support the list value 'issueHistory()' for field 'issue'."
- The list is personal. It is built from what you opened, so a saved filter that uses it shows a different set to every person who runs it. Do not use it for a team board or a shared dashboard.
- The docs say that without a login only the items from your current browser session are included. The trail is capped, so anything older than the 50 most recent views will not match.

## Questions and answers

### How do I find an issue I looked at yesterday in Jira?

Run issue in issueHistory() and add project, status or text filters to narrow it down. It covers up to 50 recently viewed items.

### Is issueHistory() the same as workItemHistory()?

Atlassian renamed the function in its docs. Both names were accepted in our checks, and both need issue in (...), not work item in (...).

## Related

- [lastViewed](https://goingstellar.ro/reference/jql/lastviewed-field/)
- [watchedIssues()](https://goingstellar.ro/reference/jql/watchedissues/)
- [currentUser()](https://goingstellar.ro/reference/jql/currentuser/)
- [IN](https://goingstellar.ro/reference/jql/in-operator/)
- [NOT IN](https://goingstellar.ro/reference/jql/not-in-operator/)
- [key](https://goingstellar.ro/reference/jql/issuekey-field/)

## Sources

- [JQL functions (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)

