Rest API for jql search does not appear to let you use dot notation to expand things within the issues return set

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 6.0
    • 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

            Assignee:
            Unassigned
            Reporter:
            Tim Wong (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: