-
Prepare an Excel file named
workpackages.xlsxin the project root directory. The file should have the following columns:- subject (required)
- project_id (required)
- author_id (required)
- type_id (optional, default: 1)
- status_id (optional, default: 1)
- priority_id (optional, default: 9)
- assignee_id (optional)
- category_id (optional)
- start_date (optional, format: YYYY-MM-DD)
- due_date (optional, format: YYYY-MM-DD)
- description (optional)
- duration (optional,but if there are start_date & due_date, required)
-
Activate your virtual environment and install dependencies if you haven't already:
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt- Run the bulk work package creation command:
python3 main.py bulk-create-work-packagesEach work package in the Excel file will be created via the OpenProject API, and the result will be printed for each row.
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 app.py