Going Stellar

Home/Atlassian REST API reference

Jira and Confluence Cloud REST API

Jira expand, fields and properties query parameters

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

MethodPathWhat 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.

curl

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 (requests)

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 .

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

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

curl

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 (requests)

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 .

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

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

curl

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 (requests)

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 .

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

properties=*all adds a properties object.

curl

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 (requests)

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 .

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

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

curl

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

Python (requests)

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 .

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

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

curl

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 (requests)

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 .

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.

Sources

  1. The Jira Cloud platform REST API v3 (Atlassian Developer)
  2. Get issue (Jira REST API v3)
  3. The Confluence Cloud REST API v2 (Atlassian Developer)

Markdown version · All REST API pages