I am trying to use the api https://jira.mdthink.maryland.gov/rest/api/2/search?jql… which is always returning maxResults as 50. To increase the results size, I passed maxResults=100 and the api is returning below error:
{
“errorMessages”: [
“Field ‘maxResults’ does not exist or you do not have permission to view it.”
],
“errors”: {}
}
Same thing happening for the parameter ‘startAt’ as well.
Please help me how to implement pagination with increased count.
Hello @SreekanthMarrikanti
If you Google that error message, the first result is this article in Stack Exchange that answers your exact question… you are trying to include maxResults
and startAt
as part of the JQL query, not as separate parameters. You do it this way:
https://jira.mdthink.maryland.gov/rest/api/2/search?jql=project=ABC AND whatever&maxResults=100&startAt=200
or this way:
https://jira.mdthink.maryland.gov/rest/api/2/search?maxResults=100&startAt=200&jql=project=ABC AND whatever