I've attempted to return all issues from Jira in a paged fashion by providing no jql query parameter to a search (/rest/api/2/search).
However, in my case no issues are returned, when no jql query parameter is provided.
Is this a bug, or what am I doing wrong?
https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get
jqlstringThe JQL that defines the search. Note:
jql
string
The JQL that defines the search. Note:
If no JQL expression is provided, all issues are returned.
Examples:
No results are returned if jql is empty:
$ curl -XGET -s -u 'user:pass' 'https://jira.myorg.net/rest/api/2/search?startAt=0&maxResults=1&jql=&fields=description,summary,comment,attachment&expand=' | jq{"startAt": 0,"maxResults": 1,"total": 0,"issues": []}
Results are returned if jql is non-empty:
$ curl -XGET -s -u 'user:pass' 'https://jira.myorg.net/rest/api/2/search?startAt=0&maxResults=1&jql=description+IS+NOT+NULL+OR+summary+IS+NOT+NULL&fields=description,summary,comment,attachment&expand=' | jq{"expand": "names,schema","startAt": 0,"maxResults": 1,"total": 464402,"issues": [{ ...
It looks like you're new here. Sign in or register to get started.