Open link in a new tab

Content

Expand project menu

Access OpenProject API with Powershell (w/ working example)

Hi,
we were struggling to get a working Powershell script to use the OpenProject API.

To help others to do this more easily, I created a working example, see the attached file.

Just adopt the server and the apikey to fit your system:

# Generate your API key in "your account"
$API_KEY="changethistoyourownapikey"
# OpenProject server
$server = 'http://openproject.domain.tld'

The example program will:

  • List all projects
  • List the workpackage of the Demo Project
  • Add a new User Story to the Demo Project
    • Including the ‘Powershell-like’ modification of an attribute

Enjoy!
Peter