Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • 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

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu
Development
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. Development
  5. API: Filtering Work packages with Versions

API: Filtering Work packages with Versions

Added by Marco Kuppinger about 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...