The "JQL enhanced search" API does not return the last field

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      If you query the Search for issues using JQL enhanced search (GET) API and specify 3 fields in the query, only 2 will be returned

      Steps to Reproduce

      1. Step 1
        Paste a query like this on the browser: https://xxxxxxxxxx.atlassian.net/rest/api/2/search/jql?jql=project=TEST&fields=aggregatetimespent,customfield_123,customfield_456?startAt=0&maxResults=5000
      2. Step 2
        Click search

      Expected Results

      Three fields should be returned like this:

          {
            "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations,customfield_123.properties",
            "id": "72238",
            "self": "https://xxxxxxxxx.atlassian.net/rest/api/2/issue/72238",
            "key": "TEST-471",
            "fields": {
              "customfield_123": "Test value",
              "customfield_456": "Test value 2",
              "aggregatetimespent": 15000
            }
          }
      

      Actual Results

      • The * "aggregatetimespent": 15000* field is not returned in the results
            {
              "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations,customfield_123.properties",
              "id": "72238",
              "self": "https://xxxxxxxxx.atlassian.net/rest/api/2/issue/72238",
              "key": "TEST-471",
              "fields": {
                "customfield_123": "Test value",
                "customfield_456": "Test value 2"
              
              }
            }
        

      Workaround

      Add a Null in your field array like this: https://xxxxxxxxxx.atlassian.net/rest/api/2/search/jql?jql=project=TEST&fields=aggregatetimespent,customfield_123,customfield_456,null?startAt=0&maxResults=5000

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

                Created:
                Updated:
                Resolved: