# lastLogin() in JQL: syntax and examples

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

lastLogin() stands for the time your previous session started. Compare a date field with it to see what was created or changed since you were last in Jira. It suits a personal "what did I miss" filter, less so a shared board.

## Syntax

```
l
a
s
t
L
o
g
i
n
(
)
```

## Works with

- Fields: Created, Due, Resolved, Updated, custom fields of type Date/Time
- Operators: =, !=, >, >=, <, <=, and inside WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED predicates
- Not with: ~, !~, IS, IS NOT, IN, NOT IN

## Examples

```
updated > lastLogin() AND project = WEB
```

Everything on the website project that changed since your previous session. A catch-up list after a day out. Run on Jira Cloud on 2026-11-29.

```
updated > lastLogin() AND assignee = currentUser() ORDER BY updated DESC
```

Changes on your own work since your previous session, newest first. Run on Jira Cloud on 2026-11-29.

```
status CHANGED TO Done AFTER lastLogin()
```

Items that were finished since your previous session. Pair it with a status change to see progress rather than any edit. Run on Jira Cloud on 2026-11-29.

```
status CHANGED AFTER lastLogin()
```

Items that moved between statuses since you were last in. Comments and field edits do not count. Run on Jira Cloud on 2026-11-29.

```
created > lastLogin() AND reporter = currentUser() AND assignee != currentUser()
```

Tickets you raised since your previous session that someone else took on. Run on Jira Cloud on 2026-11-29.

```
resolved > lastLogin() AND project = MOB
```

Mobile work that was resolved since your last session, for a quick release check. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- `lastLogin()` takes no argument. `updated > lastLogin("-1d")` fails with "Function 'lastLogin' expected '0' arguments but received '1'." Unlike `startOfDay()`, you cannot shift it with an offset.
- The value belongs to the person and the session, so two people see different results from one saved filter. A dashboard gadget that uses it is hard to read for anyone but its owner.
- Sessions are what it measures, not working days. If you stay logged in for a week, your previous session began long before the week started, and the list is long. Short sessions have the opposite effect.
- In a search sent through the REST API with an API token, `lastLogin()` matched every work item we tried, and `currentLogin()` matched none (checked on Jira Cloud, November 2026). Do not build automation on either function.

## Questions and answers

### How do I see what changed in Jira since I last logged in?

Use updated > lastLogin(). Add project or assignee clauses to keep it short.

## Related

- [currentLogin()](https://goingstellar.ro/reference/jql/currentlogin/)
- [updated](https://goingstellar.ro/reference/jql/updated-field/)
- [created](https://goingstellar.ro/reference/jql/created-field/)
- [now()](https://goingstellar.ro/reference/jql/now/)
- [startOfDay()](https://goingstellar.ro/reference/jql/startofday/)
- [CHANGED](https://goingstellar.ro/reference/jql/changed-operator/)

## Sources

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

