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
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. API: Filtering Work packages with Versions

API: Filtering Work packages with Versions

Added by Marco Kuppinger almost 3 years ago

Hello,

I'm trying to fetch workpackages with specific Versions via the API/V3.

The request is:

https://<servername>/api/v3/work_packages?filters=%5B%7B%22version%22%3A%7B%22operator%22%3A%22=%22%2C%22values%22%3A%5B%221%22%5D%7D%7D%5D

orĀ 

https://<servername>/api/v3/work_packages?filters=[{"version":{"operator":"=","values":["1"]}}]

It is always returned with status 400:

{
   "_type": "Error",
   "errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
   "message": "Version filter has invalid values."
}

How do I provide the correct filter values?

Thanks


Loading...