OpenProject

OpenProject (serviceId opf-openproject) is a widely used open source (GPL-3.0) web-based project management platform with Gantt charts, Kanban boards, issue tracking, time logging and team collaboration tools, agile and scrum support and budgeting. In Eyevinn Open Source Cloud (OSC) it is a long-running service instance with up to 10 GiB of storage per instance. It is a self-hosted alternative to Jira or Basecamp with full data ownership. Source: opf/openproject.

What it can do

  • Plan and track projects with work packages, Gantt charts, boards (classic, Scrum, Kanban) and time tracking.
  • Enable or disable modules such as Work packages, Gantt charts, Time tracking and Wiki per project, and invite members with roles.
  • Be driven programmatically through the OpenProject REST API.

Creating an instance

OpenProject needs a PostgreSQL database for projects, work packages, users and configuration. Create it first with PostgreSQL (serviceId birme-osc-postgresql, with name and PostgresPassword; PostgresUser defaults to postgres and PostgresDb to the user name) and confirm it is running. Use describe-service-instance to read its address and port, which give the URL postgres://postgres:<password>@<IP>:<PORT>/postgres.

Store that URL as a service secret with create-service-secret on serviceId opf-openproject (for example dburl). Then call create-service-instance with serviceId: "opf-openproject":

{
  "name": "myproject",
  "DatabaseUrl": "{{secrets.dburl}}"
}

Wait for the instance to be running (wait-for-service-ready) and use describe-service-instance to get the URL.

CLI equivalent:

osc create opf-openproject myproject \
  -o DatabaseUrl="postgres://postgres:<password>@<IP>:<PORT>/postgres"

Options

Option Required Type Meaning
name Yes string Name of the instance. Alphanumeric, at most 20 characters.
DatabaseUrl Yes string, sensitive PostgreSQL connection URL as postgres://USER:PWD@IP:PORT/DB. Sets DATABASE_URL; the database holds projects, work packages, users and all other application data.

DatabaseUrl is sensitive: store it as a service secret and pass it as {{secrets.NAME}} as the whole field value. Changing the secret later does not restart a running instance.

Using the instance

Open the instance URL and log in with the default admin credentials admin / admin. You are required to change the password on first login and can set the admin email address. Then click "+ Project" to create a project and choose its type (classic with backlog and board, Scrum or Kanban), modules and members.

The REST API can create and update work packages. Generate an API key under My account, Access tokens:

const response = await fetch(
  'https://<your-instance-url>/api/v3/projects/<project-id>/work_packages',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Basic ' + btoa('apikey:<your-api-key>'),
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      subject: 'My new task',
      _links: { type: { href: '/api/v3/types/1' } },
    }),
  }
);

Resources