Actions27
- Project Actions
- Project Task Actions
- User Actions
- Company Actions
Overview
This node integrates with the awork API to automate workflows related to project management. Specifically, for the Project Task resource and the Add Comment operation, it allows users to add a comment message to an existing task within a project. This is useful in scenarios where team members want to programmatically append notes, updates, or feedback directly to tasks as part of automated processes.
Practical examples include:
- Automatically adding status update comments when a task changes state.
- Logging system-generated messages or reminders on tasks.
- Adding comments from external systems or chatbots into project tasks.
Properties
| Name | Meaning |
|---|---|
| Task ID | The unique identifier of the task to which the comment will be added. |
| Comment Message | The content of the comment to be posted on the specified task. |
Output
The node outputs JSON data representing the result of the comment addition operation. Typically, this includes details about the newly created comment such as its ID, content, author, timestamp, and associated task information.
If the node supports binary data output (not indicated here), it would represent any file attachments or media related to the comment, but based on the provided code and properties, the output is purely JSON.
Dependencies
- Requires an active connection to the awork API.
- Needs an API authentication token credential configured in n8n to authorize requests.
- The base URL for API calls is
https://api.awork.com. - Proper permissions on the awork account to add comments to project tasks.
Troubleshooting
- Invalid Task ID: If the provided Task ID does not exist or is incorrect, the API will return an error. Verify the Task ID before running the node.
- Missing Comment Message: Ensure that the comment message is not empty; otherwise, the API may reject the request.
- Authentication Errors: Check that the API key credential is valid and has sufficient permissions.
- API Rate Limits: Frequent calls might hit rate limits imposed by awork; consider adding delays or retries.
- Network Issues: Confirm network connectivity to
https://api.awork.com.
Common error messages:
"Unauthorized": Indicates invalid or missing API credentials."Not Found": The specified task does not exist."Bad Request": Usually due to missing required fields like the comment message.
Resolving these typically involves verifying input parameters and credentials.