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
General discussion
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. General discussion
  5. API - Subject matches?

API - Subject matches?

Added by Stephen King over 6 years ago

I'm new to OP and APIs in general - trying to use the API to search and match to a specific project's Subject, but the API documentation doesn't mention how to do this. For example using filters; "filters=[{"subject":{"operator":"=","values":"test"}}]" reports that "InvalidQuery","message":"Subject Operator is not set to one of the allowed values.", meaning the '=' sign, surprisingly, isn't a valid operator.  By chance I noticed elsewhere buried in the docs in an unrelated section that "~" worked as an operator, but this appears to be a "contains the value" and in the above example would return all results with 'test' anywhere in the Subject- certainly closer, but not a match. 

Does anyone know where there is a list of Subject operators that can be used in filters? Or any operators used in filters in any documentation?


Loading...