Going Stellar

Home/Atlassian REST API reference

Jira and Confluence Cloud REST API

Get a Jira work item with the REST API

GET /rest/api/3/issue/{issueIdOrKey} returns one work item by key or numeric id. Without a fields parameter the response carries every field the site has, so ask for the few you need. The top-level expand string only lists what could be expanded; nothing in it is loaded until you request it.

Endpoints

MethodPathWhat it does
GET/rest/api/3/issue/{issueIdOrKey}Returns the details of one work item, optionally limited with fields, expand and properties.

Examples

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

Fetch a work item with no parameters and see how large the default response is. The excerpt keeps a handful of fields.

curl

curl \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  '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'},
)
print(r.status_code, r.text)

Response: HTTP 200

{
 "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
 "id": "10766",
 "key": "WEB-55",
 "self": "https://your-domain.atlassian.net/rest/api/3/issue/10766",
 "fields": {
  "summary": "REST API reference test issue - delete",
  "issuetype": {
   "name": "Task"
  },
  "status": {
   "name": "To Do"
  },
  "labels": [],
  "description": null,
  "votes": {
   "self": "https://your-domain.atlassian.net/rest/api/3/issue/WEB-55/votes",
   "votes": 0,
   "hasVoted": false
  },
  "watches": {
   "self": "https://your-domain.atlassian.net/rest/api/3/issue/WEB-55/watchers",
   "watchCount": 1,
   "isWatching": true
  }
 }
}

Response headers

X-Ratelimit-Limit: 400
X-Ratelimit-Remaining: 399

Sent to Atlassian Cloud on .

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

Limit the payload to four fields with a comma-separated fields list. Only those keys appear under fields.

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

{
 "key": "WEB-55",
 "fields": {
  "summary": "REST API reference test issue - delete",
  "created": "2026-11-29T19:29:15.698+0200",
  "assignee": {
   "accountId": "<accountId>",
   "displayName": "<display name>",
   "active": true
  },
  "status": {
   "name": "To Do",
   "statusCategory": {
    "key": "new"
   }
  }
 }
}

Sent to Atlassian Cloud on .

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

Ask for HTML-rendered fields, field display names and the available transitions in one call.

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

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

Sent to Atlassian Cloud on .

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

The same read through the v2 path. The self link switches to /rest/api/2 and the description of an unset field is null.

curl

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

Python (requests)

import os
import requests

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

Response: HTTP 200

{
 "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
 "id": "10766",
 "self": "https://your-domain.atlassian.net/rest/api/2/issue/10766",
 "key": "WEB-55",
 "fields": {
  "summary": "REST API reference test issue - delete",
  "description": null
 }
}

Sent to Atlassian Cloud on .

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

The properties parameter adds a properties object next to fields. It is empty when the work item has no properties.

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

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

Sent to Atlassian Cloud on .

GET /rest/api/3/issue/WEB-999999

A key that does not exist gives a 404 with a single message in errorMessages.

curl

curl \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  'https://your-domain.atlassian.net/rest/api/3/issue/WEB-999999'

Python (requests)

import os
import requests

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

Response: HTTP 404

{
 "errorMessages": [
  "Issue does not exist or you do not have permission to see it."
 ],
 "errors": {}
}

Sent to Atlassian Cloud on .

How it behaves

  • A request with no fields parameter returns every field on the work item, including customfield_* entries, so the response grows with the site configuration.
  • The top-level expand value on a plain read is a list of expansion names (renderedFields, names, schema, operations, editmeta, changelog, versionedRepresentations). None of those sections are in the body until named in the expand query parameter.
  • With expand=renderedFields, summary came back as null and description as an empty string for a work item whose description was unset, so the rendered block is not a copy of every requested field.
  • A key that does not exist and one the caller cannot see produce the same 404 message, 'Issue does not exist or you do not have permission to see it.'
  • Both /rest/api/3 and /rest/api/2 accept the same request; the versions differ in how rich-text fields are shaped, and the self links follow the version used.

Pitfalls

  • Leaving out fields on a busy site makes every read heavy. Name the fields, or use -field exclusions with *all, when you only need a few values.
  • A 404 does not tell you whether the key is wrong or the account lacks Browse projects permission. Check the permission before assuming the work item is gone.
  • Custom fields show up as customfield_ plus a number. Request expand=names to map each id to its display name instead of hard-coding ids from one site.
  • Unset values are null (description, assignee, duedate) and empty lists are [] (labels, subtasks). Code that indexes into them has to test first.

Questions and answers

Can I fetch a work item by its numeric id instead of the key?

Yes. The path parameter is named issueIdOrKey. The spec adds that a case-insensitive match and moved work items are resolved, and the key in the response is the key of the work item that was found.

How do I read only the status?

Send fields=status. The status object includes its name and statusCategory, as the fields example shows.

Sources

  1. The Jira Cloud platform REST API v3 (Atlassian Developer)
  2. Get issue (Jira REST API v3)
  3. Rate limiting, Jira (Atlassian Developer)

Markdown version · All REST API pages