-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 5.0.2, 5.1.7
-
Component/s: REST API
-
5
Using /rest/api/2/search
Try posting to https://jira.atlassian.com/rest/api/2/search
{
"jql": "key=JRA-9",
"startAt": 0,
"maxResults": 15,
"fields": [
"summary",
"status",
"assignee"
],
"expand":["issue.changelog"]
}
Returns
{
"expand": "names,schema",
"startAt": 0,
"maxResults": 15,
"total": 1,
"issues": [{
"expand": "editmeta,renderedFields,transitions,changelog,operations",
"id": "10148",
"self": "https://jira.atlassian.com/rest/api/2/issue/10148",
"key": "JRA-9",
"fields": {
"summary": "User Preference: User Time Zones",
"status": {
"self": "https://jira.atlassian.com/rest/api/2/status/5",
"description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.",
"iconUrl": "https://jira.atlassian.com/images/icons/statuses/resolved.png",
"name": "Resolved",
"id": "5"
},
"assignee": null
}
}]
}
The documentation suggests that I might be able to use dot expansion to get into the changelog of this issue, but I cannot. No combination seems to allow you to expand the inner expands. Expanding names or schema does seem to work, just not anything inside the issues ( "expand": "editmeta,renderedFields,transitions,changelog,operations",
)
Tested against 5.2.2
- mentioned in
-
Wiki Page Loading...