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

How to get all custom objects by the API

Added by Daniel Narberhaus almost 4 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 over 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...