using REST API - need to pull more than page default

Bill DeGan
Contributor
January 10, 2022

Running the curl command I can only pull the max number of 49 tasks.

It looks like that is the default page limit.

Can I over ride that limit using the curl command?

Thank you.

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
2 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2022

Hi @Bill DeGan ,

welcome to the Atlassian Community!

Would you please share us the curl command? Which endpoint are you using?

Thank you!

Bill DeGan
Contributor
January 10, 2022

Here is my generated curl command (I changed the token and the -u for security):

curl -G "https://ontrack.venturesolutions.com/jira/rest/api/2/search?jql=project%20%3D%20OTCI" -H 'Content-Type: application/json' -H 'Postman-Token: 753b8f93-53d2-4b1a-9b72-d4abd' -H 'cache-control: no-cache' -u 'Unix2Jira:Jira@XXX' -k --cacert dummy_path_none_required/ontrack_venturesolutions_com.crt -d

Like Hana Kučerová likes this
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2022

Thanks for sharing @Bill DeGan .

Here's the documentation for this endpoint.

You should be able to use maxResults query parameter to change the default 50.

Like Steffen Opel _Utoolity_ likes this
Bill DeGan
Contributor
January 10, 2022

yes. that is working.   Thank you.

TAGS
AUG Leaders

Atlassian Community Events