Actions3
- Task Actions
Overview
This n8n node allows you to edit metadata for one or more tasks in Wrike using the Wrike API. Specifically, it supports updating custom metadata fields on existing tasks by specifying their IDs and the key-value pairs to set. This is useful for automating task management workflows, such as tagging tasks with additional information, updating statuses, or integrating Wrike with other systems that require metadata synchronization.
Example scenarios:
- Automatically add or update custom tags or properties on tasks after a certain event.
- Integrate Wrike with another system by syncing metadata fields.
- Batch-update multiple tasks with new metadata values.
Properties
Name | Meaning |
---|---|
Metadata | Allows you to specify one or more metadata key-value pairs to add or update on the selected tasks. Each entry has: - Name: Name of the metadata key to add. - Value: Value to set for the metadata key. |
ID(s) | Comma-separated list of Wrike Task IDs to which the metadata changes will be applied (e.g., FF545646,GGF56464 ). |
Output
The output is a JSON array containing the response(s) from the Wrike API for each processed input item. The structure of each item in the array reflects the Wrike API's response for the updated task(s), typically including details such as task ID, updated metadata, and other task properties.
Example output:
[
{
"kind": "tasks",
"data": [
{
"id": "FF545646",
"metadata": [
{ "key": "Priority", "value": "High" }
],
// ...other task fields
}
]
}
]
Dependencies
- Wrike API: Requires a valid Wrike account and an API token.
- n8n Credentials: You must configure the
wrikeApi
credential in n8n for authentication.
Troubleshooting
- Invalid Task IDs: If you provide incorrect or non-existent task IDs, the API will return an error indicating the tasks could not be found.
- Missing Metadata: If no metadata is provided, the request may fail or have no effect.
- Authentication Errors: If your
wrikeApi
credentials are missing or invalid, you will receive authentication errors from the API. - API Rate Limits: Excessive requests may trigger Wrike API rate limiting; ensure you stay within allowed limits.
Common error messages:
"401 Unauthorized"
: Check your Wrike API credentials in n8n."404 Not Found"
: Verify the task IDs are correct and exist in your Wrike workspace."400 Bad Request"
: Ensure the metadata format is correct and all required fields are provided.