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. Access OpenProject API with Powershell (w/ working example)

Access OpenProject API with Powershell (w/ working example)

Added by Peter Franken about 8 years ago

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


Loading...