# Jira work item changelog with the REST API

URL: https://goingstellar.ro/reference/atlassian-rest-api/issue-changelog/

GET /rest/api/3/issue/{issueIdOrKey}/changelog returns the change history as a page of values, oldest first, each with an author, a created time and an items list of field changes. The same data is available on a work item read with expand=changelog.

## Endpoints

| Method | Path | What it does |
|---|---|---|
| GET | `/rest/api/3/issue/{issueIdOrKey}/changelog` | Returns a paginated list of changelogs for a work item. |

## Examples

### GET /rest/api/3/issue/{issueIdOrKey}/changelog

Read the first three entries. The page has total 7, isLast false and a nextPage link.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'maxResults=3' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/changelog'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/changelog',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'maxResults': '3'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "maxResults": 3,
 "startAt": 0,
 "total": 7,
 "isLast": false,
 "nextPage": "https://your-domain.atlassian.net/rest/api/3/issue/WEB-55/changelog?maxResults=3&startAt=3",
 "values": [
  {
   "id": "10913",
   "created": "2026-11-29T19:29:38.928+0200",
   "author": {
    "accountId": "<accountId>"
   },
   "items": [
    {
     "field": "summary",
     "fieldtype": "jira",
     "fieldId": "summary",
     "from": null,
     "fromString": "REST API reference test issue - delete",
     "to": null,
     "toString": "REST API reference test issue - edited"
    }
   ]
  },
  {
   "id": "10914",
   "created": "2026-11-29T19:29:40.105+0200",
   "author": {
    "accountId": "<accountId>"
   },
   "items": [
    {
     "field": "labels",
     "fieldtype": "jira",
     "fieldId": "labels",
     "from": null,
     "fromString": "",
     "to": null,
     "toString": "alpha beta"
    }
   ]
  },
  {
   "id": "10915",
   "created": "2026-11-29T19:29:41.273+0200",
   "author": {
    "accountId": "<accountId>"
   },
   "items": [
    {
     "field": "labels",
     "fieldtype": "jira",
     "fieldId": "labels",
     "from": null,
     "fromString": "alpha beta",
     "to": null,
     "toString": "beta gamma"
    }
   ]
  }
 ]
}
```

Response headers:

```
X-Ratelimit-Limit: 200
X-Ratelimit-Remaining: 198
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/3/issue/{issueIdOrKey}

The expand=changelog route on a fresh work item. The changelog block is there but has no histories.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=summary' \
  --data-urlencode 'expand=changelog' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'summary', 'expand': 'changelog'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
 "id": "10774",
 "self": "https://your-domain.atlassian.net/rest/api/3/issue/10774",
 "key": "WEB-63",
 "changelog": {
  "startAt": 0,
  "maxResults": 0,
  "total": 0,
  "histories": []
 },
 "fields": {
  "summary": "REST API reference test issue - delete"
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/3/issue/{issueIdOrKey}

The current state of the work item, which is the sum of the changes the history lists.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=summary,status,labels,assignee' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'summary,status,labels,assignee'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "key": "WEB-55",
 "fields": {
  "summary": "REST API reference test issue",
  "labels": [
   "beta",
   "gamma"
  ],
  "status": {
   "name": "In Progress"
  }
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

## How it behaves

- The page object has startAt, maxResults, total, isLast and, when more pages exist, a nextPage URL with the next startAt.
- Entries came back oldest first: ids 10913, 10914, 10915 with rising created timestamps.
- Each item has field, fieldtype, fieldId, from, fromString, to and toString. For labels, from and to were null and the values sat in fromString and toString as a space-separated string, such as "alpha beta".
- A work item with no edits returned changelog {startAt 0, maxResults 0, total 0, histories []} under expand=changelog.

## Pitfalls

- Do not read labels from the changelog as an array. They are one space-separated string.
- The history is paged. Follow startAt or nextPage until isLast is true before concluding something never changed.
- Reference ids such as from and to can be null for text fields; read fromString and toString for display values.
- A work item with no edits has an empty history, so a zero total is a normal answer.

## Questions and answers

### How do I list who moved a work item to Done?

Page through the changelog and look for items where field is status and toString is Done; the author sits on the entry.

### Is the newest change first?

No. The spec says sorted by date starting from the oldest, and the example agrees.

## Related

- [Get a work item](https://goingstellar.ro/reference/atlassian-rest-api/get-issue/)
- [Edit a work item](https://goingstellar.ro/reference/atlassian-rest-api/edit-issue/)
- [Transitions](https://goingstellar.ro/reference/atlassian-rest-api/issue-transitions/)
- [startAt and maxResults](https://goingstellar.ro/reference/atlassian-rest-api/pagination-startat-maxresults/)
- [expand, fields and properties parameters](https://goingstellar.ro/reference/atlassian-rest-api/expand-fields-properties/)
- [Update operations (add, remove, set)](https://goingstellar.ro/reference/atlassian-rest-api/edit-issue-update-operations/)

## Sources

- [The Jira Cloud platform REST API v3 (Atlassian Developer)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/)
- [Get changelogs (Jira REST API v3)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-changelog-get)

