-
Type:
Bug
-
Resolution: Invalid
-
Priority:
Low
-
Component/s: Work Item - Search - Backend - JVIS
-
None
-
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
- 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 - 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