Expanding "changelog" for JIRA REST API "search" with POST throws error

XMLWordPrintable

      Summary
      Expanding "changelog" for JIRA REST API "search" with POST throws error.

      {"errorMessages":["Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@4bee02; line: 4, column: 18] (through reference chain: com.atlassian.jira.rest.v2.search.SearchRequestBean[\"expand\"])"]} 
      

      JSON sample:

      { "jql": "project=AP", "startAt": 0, "maxResults": 15, "expand": "changelog", "fields": ["summary", "key", "changelog"] }
      

      Workaround(partial)
      Encode the JQL into URL if possible e.g:

      https://<domain>.atlassian.net/rest/api/2/search?jql=project=AP&startAt=0&maxResults=15&fields=summary,key,changelog&expand=changelog
      

            Assignee:
            Unassigned
            Reporter:
            Fahd (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: