Actions18
Overview
The node provides advanced integration with the Linear API, allowing users to interact with various Linear resources such as issues, comments, labels, members, projects, and teams. Specifically for the Comment resource with the Get operation, the node retrieves detailed information about a specific comment by its ID.
This is useful in scenarios where you want to fetch and use comment data from Linear within an automated workflow, for example:
- Retrieving a comment's content and metadata to display or process it elsewhere.
- Using comment details to trigger further actions based on comment content or author.
- Integrating comment data into reports or notifications.
Properties
| Name | Meaning |
|---|---|
| Comment ID | The unique identifier of the comment to retrieve. This is required to specify which comment to get. |
Output
The output is a JSON object representing the retrieved comment. It contains all available fields of the comment as returned by the Linear API, such as the comment's text body, author, creation date, and any other metadata associated with the comment.
No binary data output is involved.
Example output structure (simplified):
{
"id": "comment-id",
"body": "The text content of the comment in markdown format",
"createdAt": "timestamp",
"creator": {
"id": "user-id",
"name": "User Name"
},
...
}
Dependencies
- Requires an API key credential for authenticating with the Linear API.
- Uses the official Linear SDK (
@linear/sdk) to communicate with the Linear service. - The node expects the user to configure the Linear API credentials in n8n before use.
Troubleshooting
- Missing or invalid Comment ID: The operation requires a valid comment ID. Ensure the Comment ID property is correctly set and corresponds to an existing comment.
- API authentication errors: If the API key credential is missing, invalid, or expired, the node will fail to connect. Verify that the API key is correct and has sufficient permissions.
- Network or API errors: Temporary network issues or Linear API downtime can cause failures. Retry after some time or check the API status.
- Unsupported operations: The code explicitly throws errors if unsupported operations or resources are used. Make sure to select the supported "Get" operation for the "Comment" resource.