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 Notifications" for the "Notifications" resource interacts with an OpenProject API to retrieve a paginated list of notifications. It allows users to query notifications with various filtering, sorting, and grouping options. This is useful in scenarios where you want to monitor or process project-related notifications programmatically, such as fetching unread notifications, filtering by project or reason, or sorting them by different criteria.
Practical examples include:
- Automatically retrieving all unread notifications to alert a user.
- Fetching notifications related to a specific project for reporting.
- Sorting notifications by their reason or read status to prioritize processing.
Properties
| Name | Meaning |
|---|---|
| Offset | Page number inside the requested collection (pagination offset). |
| Page Size | Number of elements to display per page (pagination limit). |
| Sort By | JSON string specifying sort criteria. Supported sorts: id (primary key), reason (notification reason), readIAN (read status). Example format: [["reason", "asc"]]. |
| Group By | String specifying group-by criteria. Supported values: reason (group by notification reason), project (group by associated project). |
| Filters | JSON string specifying filter conditions. Supported filters include: id (primary key), project (project the notification was created in), readIAN (read status), reason (notification reason), resourceId, and resourceType. Example default filters unread notifications. |
Output
The output contains a JSON array of notification objects retrieved from the OpenProject API according to the specified query parameters. Each notification object typically includes details such as its ID, reason, read status, associated project, and related resource information.
If binary data were involved (not indicated here), it would be summarized accordingly, but this operation deals solely with JSON notification data.
Dependencies
- Requires an API key credential for authenticating with the OpenProject API.
- The node uses the base URL provided in the credentials to connect to the OpenProject instance.
- No additional external dependencies beyond the OpenProject API and n8n's HTTP request capabilities.
Troubleshooting
- Common issues:
- Incorrect or missing API credentials will cause authentication failures.
- Malformed JSON strings in
Sort ByorFiltersproperties can lead to API errors. - Pagination parameters (
Offset,Page Size) set outside valid ranges may result in empty responses or errors.
- Error messages:
- Authentication errors usually indicate invalid or expired API tokens; verify and update credentials.
- API validation errors on filters or sorting mean the JSON format or field names are incorrect; ensure they match the documented API schema.
- Network or connectivity errors suggest issues reaching the OpenProject server; check URL and network access.
Links and References
- OpenProject API Queries Documentation
- OpenProject Notifications API (general reference)
- n8n documentation on HTTP Request Node for understanding API interaction basics