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, List Relations, interacts with the OpenProject API to retrieve a list of relations between work packages. Relations represent links or dependencies from one work package to another within OpenProject projects. This operation is useful for project managers and teams who want to analyze or visualize how different tasks or work packages are connected.
Typical use cases include:
- Fetching all relations where a specific work package is involved.
- Filtering relations by type (e.g., "follows", "blocks") to understand task dependencies.
- Sorting relations to display them in a meaningful order.
For example, you might use this node to get all relations where work package ID 42 is the source, helping you identify all tasks that depend on it.
Properties
| Name | Meaning |
|---|---|
| Filters | A JSON string specifying filter conditions to narrow down which relations to list. It supports filtering by relation ID, source work package (from), target work package (to), any involved work package (involved), or relation type (e.g., "follows"). Example: [{"from": {"operator": "=", "values": 42}}]. |
| Sort By | A JSON string specifying sorting criteria for the results. It accepts the same format as OpenProject query endpoints. For example, [["type", "asc"]] sorts relations by their type in ascending order. |
Output
The node outputs an array of relation objects in the json field of each item. Each relation object typically includes details such as:
- Relation ID
- Source work package ID (
from) - Target work package ID (
to) - Relation type (e.g., "follows", "blocks")
- Other metadata related to the relation
This structured output allows further processing or integration into workflows, such as reporting or visualization.
The node does not output binary data.
Dependencies
- Requires an active connection to an OpenProject instance via its REST API.
- Needs an API authentication token or key configured in the node credentials to authorize requests.
- The base URL of the OpenProject server must be provided in the credentials.
Troubleshooting
- Invalid Filter or Sort JSON: If the JSON strings provided in Filters or Sort By are malformed, the API request will fail. Ensure valid JSON syntax.
- Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Verify the API key/token and base URL.
- No Relations Found: If filters are too restrictive or no relations exist matching criteria, the output will be empty.
- API Endpoint Changes: If OpenProject updates their API, some fields or filter options may change. Check the official OpenProject API documentation if unexpected errors occur.