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. How to get all custom objects by the API

How to get all custom objects by the API

Added by Daniel Narberhaus over 3 years ago

There's an endpoint in the API for custom objects, the list elements of a custom field.

Found on API: Custom Objects (openproject.org)

But this endpoint isn't working well and what I need is the complete list of all custom objects with a link information of the custom field they belong to.

Has anybody solve this use case?


Replies (1)

RE: How to get all custom objects by the API - Added by Peter Olofsson about 2 years ago

I used a regular expression in this case with PHP from the JSON-objects I get back for the work_packages/form .

In this case preg_match("/customField[0-9]+)/", $key)

  • (1 - 1/1)
Loading...