Actions199
- Collections Actions
- Forms Actions
- Actions Capabilities Actions
- Activities Actions
- Attachments Actions
- Budgets Actions
- Categories Actions
- Custom Actions Actions
- Custom Options Actions
- Documents Actions
- File Links Actions
- View File Link
- Delete File Link
- Open File Link
- Download File Link
- List Project Storages
- Get Project Storage
- Open Project Storage
- Create Storage
- Get Storage
- Update Storage
- Delete Storage
- Get Storage Files
- Prepare Storage File Upload
- Create Storage Folder
- Create Storage Oauth Credentials
- Open Storage
- Create Work Package File Link
- List Work Package File Links
- Grids Actions
- Groups Actions
- Help Texts Actions
- Memberships Actions
- Query Filter Instance Schema Actions
- News Actions
- Notifications Actions
- O Auth 2 Actions
- Posts Actions
- Principals Actions
- Priorities Actions
- Query Columns Actions
- Query Filters Actions
- Query Operators Actions
- Query Sort Bys Actions
- Relations Actions
- Previewing Actions
- Revisions Actions
- Roles Actions
- Time Entries Actions
- Time Entry Activities Actions
- Types Actions
- User Preferences Actions
- Wiki Pages Actions
- Work Schedule Actions
- Meetings Actions
- Values Property Actions
- Projects Actions
- Queries Actions
- Users Actions
- Statuses Actions
- Versions Actions
- Work Packages Actions
- Get Project Work Package Collection
- Create Project Work Package
- List Work Package File Links
- Form Create Work Package In Project
- Project Available Assignees
- List Work Packages
- Create Work Package
- Form Create Work Package
- List Work Package Schemas
- View Work Package Schema
- Delete Work Package
- View Work Package
- Update Work Package
- List Work Package Activities
- Comment Work Package
- Work Package Available Assignees
- Available Projects For Work Package
- List Available Relation Candidates
- Available Watchers
- Create Work Package File Link
- Form Edit Work Package
- Revisions
- Reminders
- List Watchers
- Add Watcher
- Remove Watcher
- Views Actions
Overview
This node operation allows you to create a new Work Package in OpenProject, a project management system. Work Packages represent tasks, milestones, or other units of work within a project. Creating a Work Package programmatically is useful for automating project tracking, task creation, and integration with other systems such as issue trackers or time management tools.
Typical use cases include:
- Automatically creating tasks when new issues are reported in an external system.
- Generating milestones or deliverables based on external triggers.
- Integrating project planning workflows by syncing data from other tools into OpenProject.
For example, you could use this node to create a new task with a subject, description, start and due dates, and assign it to a user, all triggered by an event in another application.
Properties
| Name | Meaning |
|---|---|
| Notify | Boolean flag indicating whether change notifications (e.g., email) should be sent to all users interested in the work package changes (watchers, author, assignee). |
| Id | Numeric identifier of the work package. |
| Lock Version | Number used for optimistic locking to prevent conflicting updates. |
| Subject | Required. The title or subject of the work package. |
| Type | Type of the work package. Only option available is "Work Package". |
| Description | JSON object describing the work package content, supporting markdown format. Example: { "format": "markdown", "raw": "I am formatted!", "html": "I am formatted!" }. |
| Schedule Manually | Boolean indicating if scheduling is manual (true) or automatic (false). |
| Readonly | Boolean indicating if the work package is readonly except for status changes. |
| Start Date | Scheduled start date of the work package (string date). |
| Due Date | Scheduled end date of the work package (string date). |
| Date | Date milestone is achieved (string date). |
| Derived Start Date | Computed start date deduced from descendant work packages; may differ from Start Date if manual scheduling is active. |
| Derived Due Date | Computed due date deduced from descendant work packages; may differ from Due Date if manual scheduling is active. |
| Duration | Not implemented. Intended to represent the amount of time in hours needed to complete the work package (not applicable for milestones). |
| Estimated Time | Estimated time required to complete the work package excluding descendants (string). |
| Derived Estimated Time | Estimated time including descendants (string). |
| Ignore Non Working Days | Not implemented. Whether to ignore non-working days when scheduling. |
| Spent Time | Time already booked against this work package by users (string). Requires permission to view time entries. |
| Percentage Done | Numeric percentage representing completion of the work package. |
| Derived Percentage Done | Numeric percentage representing completion including descendant work packages. |
| Created At | Timestamp of creation. Writable only by admins with special settings enabled. |
| Updated At | Timestamp of last update to the work package. |
| Links | Required. JSON object containing various API links related to the work package, such as addComment, addRelation, attachments, author, assignee, project, status, etc. This is used internally to manage relations and actions. |
Output
The node outputs the created Work Package data as JSON. This includes all properties set during creation plus any additional metadata returned by the OpenProject API, such as unique identifiers, timestamps, and relational links.
If the API supports binary data related to work packages (e.g., attachments), those would be handled separately, but this operation focuses on JSON data representing the work package entity.
Dependencies
- Requires an API key credential for authenticating with the OpenProject API.
- The base URL of the OpenProject instance must be configured in the credentials.
- The node uses JSON-based REST API calls to interact with OpenProject.
- Proper permissions are required in OpenProject to create work packages and optionally to set readonly fields or view time entries.
Troubleshooting
- Permission errors: If the API returns authorization errors, verify that the API key has sufficient rights to create work packages and modify the specified fields.
- Validation errors: Missing required fields like
subjector malformed JSON indescriptionor_linkscan cause request failures. Ensure all required fields are provided and JSON is valid. - Optimistic locking conflicts: If
lockVersionis used incorrectly, updates may fail. Usually, this is more relevant for updates rather than creation. - Notification issues: Setting
notifyto true sends emails to watchers and assignees; ensure email settings in OpenProject are correctly configured. - Date formatting: Dates should be in a proper string format accepted by OpenProject (usually ISO 8601). Incorrect formats may cause errors.
Links and References
- OpenProject API Documentation
- OpenProject Work Packages Guide
- Markdown Formatting Guide (for description field)