Home/Atlassian REST API reference
Jira and Confluence Cloud REST API
Jira work item properties with the REST API
Work item properties are small JSON values stored under a key. PUT creates or replaces one (201 on create), GET reads it, a keys call lists them, and DELETE removes it. The value is whatever JSON you send, up to 32,768 characters per the spec.
Endpoints
| Method | Path | What it does |
|---|---|---|
PUT | /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey} | Sets the value of a property. |
GET | /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey} | Returns the key and value of a property. |
GET | /rest/api/3/issue/{issueIdOrKey}/properties | Lists the property keys of a work item. |
DELETE | /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey} | Deletes a property. |
Examples
PUT /rest/api/3/issue/{issueIdOrKey}/properties/ref.demo
Set a property whose body is any JSON object. A new property answers 201 with no body.
curl
curl -X PUT \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"reviewed": true,
"score": 3
}' \
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.put(
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
json={'reviewed': True, 'score': 3},
)
print(r.status_code, r.text)Response: HTTP 201
No response body.
Response headers
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 298Sent to Atlassian Cloud on .
GET /rest/api/3/issue/{issueIdOrKey}/properties/ref.demo
Read it back. The answer wraps the stored JSON in key and value.
curl
curl \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.get(
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)Response: HTTP 200
{
"key": "ref.demo",
"value": {
"reviewed": true,
"score": 3
}
}Sent to Atlassian Cloud on .
GET /rest/api/3/issue/{issueIdOrKey}/properties
List the keys with a self URL for each.
curl
curl \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.get(
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)Response: HTTP 200
{
"keys": [
{
"key": "ref.demo",
"self": "https://your-domain.atlassian.net/rest/api/3/issue/10766/properties/ref.demo"
}
]
}Sent to Atlassian Cloud on .
DELETE /rest/api/3/issue/{issueIdOrKey}/properties/ref.demo
Delete the property. The answer is 204.
curl
curl -X DELETE \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.delete(
'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/properties/ref.demo',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)Response: HTTP 204
No response body.
Sent to Atlassian Cloud on .
GET /rest/api/3/issue/{issueIdOrKey}
Request properties=*all on the work item read to include them in the body.
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 .
How it behaves
- PUT with a JSON body {"reviewed": true, "score": 3} created the property and answered 201 with no body.
- GET answered {"key": "ref.demo", "value": {...}} with the stored JSON unchanged.
- The key list answers an object with a keys array; each entry has key and self.
- properties=*all on the work item read added a properties object to the body.
Pitfalls
- The body of the PUT is the property value, not an object with a value key. Wrapping it stores the wrapper.
- The spec limits the value to 32,768 characters and the key to 255. Larger data belongs in an attachment or an external store.
- Properties are readable by anyone who can see the work item, so never put secrets in them.
- PUT answers 200 when it replaces an existing value and 201 on create; do not treat 200 as an error.
Questions and answers
Can JQL search on a property?
That is outside the requests shown on this page, and it was not tried.
Related
- Get a work item
- expand, fields and properties parameters
- Edit a work item
- Remote links
- Work item links
- Delete a work item