Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Boards
    Boards
  • Wiki
    Wiki

Content

Updated by Wieland Lindenthal 8 months ago

### Debugging info

<mention class="mention" data-id="77888" data-type="user" data-text="@Sagar Gurung">@Sagar Gurung</mention> The OpenProject API endpoint `/api/v3/work_packages/available_projects` caps to either 5 or 10 projects unless you add the URL parameter `pageSize=-1`, which makes it unlimited. However, it is not truly unlimited as all our API endpoints cap hard at some 1000 or 2000 elements in a collection. And if OpenProject has more than 2000 projects (very likely to happen), then the current approach of the Nextcloud app to load all projects at once will not work anymore. We need to have a solution where updating the search term, so making it more specific, will trigger a full new request. And then you can set the page size to something more reasonable, e.g 50.

### Steps to reproduce (a bit tricky. The following steps are not perfect)

1. In OpenProject, have more than 10 projects with every project having the same Nextcloud file storage activated.

2. On a file in Nextcloud open the &quot;OpenProject&quot; tab.

3. Click on &quot;Search for work package to create a relation&quot;

4. Click on &quot;Click and link a new work package&quot;

5. In the modal that opens, open the project drop down

6. Type a part of the project name


### What is the buggy behavior?

* There are only max 5 or 10 options or less shown (the number depends on the OpenProject version) while the one I am searching for is not in i


### What is the expected behavior?

1. If the expected project name should be in the list and is specific enough, then it should be in the list


###

Back

Loading...