Content
You are here:
Access OpenProject API with Powershell (w/ working example)
Added by Peter Franken over 7 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