Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-76012

Search endpoint returns error 500 when expanding the changelog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • Ecosystem
    • None

    Description

      Issue Summary

      The endpoints rest/api/2/search and rest/api/3/search return an internal server error if you add the following to the call "expand":["changelog"],.

      Steps to Reproduce

      • Perform a call as the following:
        curl --request POST \
          --url 'https://<Jira_url>.atlassian.net/rest/api/3/search' \
          --user '<EMAIL>:<API_TOKEN>' \
          --header 'Accept: application/json' \
          --header 'Content-Type: application/json' \
          --data '{
          "jql": "key = SPLAN-79",
          "maxResults": 15,
          "fieldsByKeys": false,
          "fields": [
            "summary",
            "project",
            "issuetype",
            "fixVersions",
            "versions",
            "reporter",
            "assignee",
            "priority",
            "status",
            "resolution",
            "created",
            "updated",
            "duedate",
            "resolutiondate",
            "timetracking",
            "timeoriginalestimate",
            "timeestimate",
            "parent",
            "security",
            "customfield_10014",
            "customfield_10011",
            "customfield_10012",
            "customfield_10020"
            ],
          "expand":["changelog"],
          "startAt": 0
        }'
        

      Expected Results

      The call works, returning all the data from that issue.

      Actual Results

      An internal server error is returned.

      Workaround

      Remove "expand":["changelog"] from the call.

      In case you need the changelog, use the endpoint rest/api/3/issue/<issueIdOrKey>/changelog.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lalmeida@atlassian.com Leonardo De Almeida
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: