taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
270 stars 163 forks source link

How to get more then 100 object for getChildEntries? #239

Closed MikeSam closed 8 years ago

MikeSam commented 8 years ago

We need to get all users for project (Project Memberships API), but we can't get more then 100 object. I can set limit setObjectsPerPage(500) and this option appears in the uri, like /projects/123/memberships.json?limit=500 (Transport.java, getChildEntries). But Redmine API ignore this limit and use default limit 100. I can't find the way to use "offset" parameter. I suppose we need functionality with auto limit/offset implemented in getObjectsList. Mayby there is a proper way to get more then 100 for getChildEntries? Thanks.

2kote commented 8 years ago

You setup paginations settings in redmine here http://yourhost.com/settings settings_per_page_options to 500

alexeyOnGitHub commented 8 years ago

right, the max elements per page is set in Redmine admin screen. this cannot be controlled from the outside through REST. thank you, @2kote