Defect #14703
closed
Redmine rest API does not list all projects
Added by Oleksandr Melnyk over 11 years ago.
Updated almost 2 years ago.
Resolution:
Cant reproduce
Description
We have about 40 projects in redmine, organised hierarchically. And for some reason REST API call /projects.json returns only part of all projects.
We have 5 root projects and return list included only subprojects of first root.
Then I created some common root project. And started to move other projects under it, once I moved 1 root project, the API started returned all subprojects from second root and so on. When I moved all projects under single root, it aggain started return projects as from start (1 sub root).
Environment:
Redmine version 2.2.4.stable.11804
Ruby version 1.9.2 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter PostgreSQL
Redmine plugins:
redmine_issue_checklist 2.0.5
redmine_lightbox 0.0.1
redmine_wktime 1.5
- Category set to REST API
- Priority changed from High to Normal
I have the same issue. I have 70 projects in total. 5 projects at root level and one of these 5 projects have 65 subprojects. All I want is a list of 65 subprojects in API response. I'm still trying to understand how can I request the details of only one projects and I'm hoping if I was able to do that, I'll hopefully get the list of all subprojects.
Experimenting with REST API I experienced a similar problem and ended up here.
In my case I could see only 25 projects.
The underlying cause is the overall result limit that can be specified with the "limit" parameter.
e.g.
/projects.json?limit=100
will return up to 100 projects that are accessible by the user.
I think this issue can be closed (rejected?).
- Status changed from New to Closed
- Resolution set to Cant reproduce
Also available in: Atom
PDF