# Jira expand, fields and properties query parameters

URL: https://goingstellar.ro/reference/atlassian-rest-api/expand-fields-properties/

A Jira work item response is controlled by three query parameters. fields limits which fields come back, expand adds parts that are off by default (renderedFields, names, transitions, changelog), and properties adds issue properties. Confluence v2 uses body-format to decide whether a body is returned at all.

## Endpoints

| Method | Path | What it does |
|---|---|---|
| GET | `/rest/api/3/issue/{issueIdOrKey}` | Takes fields, expand and properties. |
| GET | `/wiki/api/v2/pages/{id}` | Takes body-format for the page body. |

## Examples

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

fields=summary,status,assignee,created returns just those fields next to id, key and self.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=summary,status,assignee,created' \
  '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,assignee,created'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
 "id": "10766",
 "key": "WEB-55",
 "fields": {
  "summary": "REST API reference test issue - delete",
  "created": "2026-11-29T19:29:15.698+0200",
  "status": {
   "name": "To Do"
  }
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

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

expand=renderedFields,names,transitions adds three top-level objects.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=summary,description' \
  --data-urlencode 'expand=renderedFields,names,transitions' \
  '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,description', 'expand': 'renderedFields,names,transitions'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog,versionedRepresentations",
 "key": "WEB-55",
 "renderedFields": {
  "summary": null,
  "description": ""
 },
 "names": {
  "summary": "Summary",
  "description": "Description"
 },
 "transitions": [
  {
   "id": "11",
   "name": "To Do"
  }
 ]
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

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

expand=changelog adds a changelog object. This work item had no edits yet.

```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

```
{
 "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}

properties=*all adds a properties object.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=summary' \
  --data-urlencode 'properties=*all' \
  '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', 'properties': '*all'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "key": "WEB-63",
 "properties": {},
 "fields": {
  "summary": "REST API reference test issue - delete"
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /wiki/api/v2/pages/{pageId}

A Confluence v2 page without body-format has an empty body object.

```bash
curl \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "id": "33653083",
 "body": {},
 "status": "current",
 "title": "Example page"
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /wiki/api/v2/pages/{pageId}

body-format=storage returns the body in storage format.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'body-format=storage' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'body-format': 'storage'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "body": {
  "storage": {
   "representation": "storage",
   "value": "<p>Example page body.</p>"
  }
 },
 "title": "Example page",
 "id": "33653083"
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

## How it behaves

- With fields=summary,status,assignee,created only those four fields appeared in fields. The top-level expand string still listed what could be expanded.
- Requesting expand=transitions changed the top-level expand string so that transitions was listed, and added a transitions array with ids and target statuses.
- expand=renderedFields returned renderedFields only for the requested fields, and names gave the display name for each.
- On a work item with no edits, expand=changelog returned changelog with startAt 0, maxResults 0, total 0 and an empty histories array.
- properties=*all returned properties as an empty object when no property was set.

## Pitfalls

- GET issue returns all fields by default, but JQL search returns only ids. The OpenAPI notes call out both defaults.
- expand is a comma separated string in the query, not repeated parameters. Nested parts use dot notation.
- The expanded changelog is described as recent updates. Use the changelog endpoint with paging when the full history matters.

## Questions and answers

### Why is renderedFields empty for my field?

In the run, renderedFields held only the requested fields, with summary as null and the empty description as an empty string. Check each field before relying on it.

### How do I get the Confluence page body?

Pass body-format on the page request, for example storage. Without it the body object is empty.

## Related

- [Get a work item](https://goingstellar.ro/reference/atlassian-rest-api/get-issue/)
- [Changelog](https://goingstellar.ro/reference/atlassian-rest-api/issue-changelog/)
- [Work item properties](https://goingstellar.ro/reference/atlassian-rest-api/issue-properties/)
- [Body formats](https://goingstellar.ro/reference/atlassian-rest-api/page-body-formats/)
- [nextPageToken in Jira search](https://goingstellar.ro/reference/atlassian-rest-api/pagination-nextpagetoken/)
- [Search with JQL](https://goingstellar.ro/reference/atlassian-rest-api/search-jql/)

## Sources

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

