@on("linear.issue_comment")
def agent(input):
pass
{
"action": "create",
"issue": {
"id": "12345678-1234-1234-1234-123456789012",
"number": 13,
"title": "Support multiple agents",
"description": "When I mention Blocks on slack like `@BlocksOrg /codex /gemini do xyz` \n\nWe want to be able to resolve multiple agents during the Trigger resolution service, and furthermore we want to ensure that we submit independent tasks for each (note the `is_allowed` and task session \"grouping\" logic w.r.t to uniq values / session URNs)\n\n> This might already be in place but want to double check this is the case ",
"priority": 0,
"priorityLabel": "No priority",
"state": {
"id": "abcd1234-5678-9012-3456-abcdef123456",
"name": "Todo",
"type": "unstarted",
"color": "#e2e2e2"
},
"team": {
"id": "team1234-5678-9012-3456-123456789012",
"key": "TEAM",
"name": "Example Team"
},
"assignee": undefined,
"creator": {
"id": "user1234-5678-9012-3456-123456789012",
"name": "user@example.com",
"email": "user@example.com"
},
"labels": [],
"url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents",
"identifier": "TEAM-13",
"createdAt": "2025-06-04T00:28:24.140Z",
"updatedAt": "2025-09-10T01:35:32.510Z"
},
"organization": {
"id": "org12345-1234-1234-1234-123456789012"
},
"$raw": {
"action": "create",
"createdAt": "2025-09-10T01:35:32.510Z",
"data": {
"id": "comment1-2345-6789-0123-456789012345",
"createdAt": "2025-09-10T01:35:32.519Z",
"updatedAt": "2025-09-10T01:35:32.510Z",
"body": "@blocks can you look into this?",
"issueId": "12345678-1234-1234-1234-123456789012",
"userId": "user1234-5678-9012-3456-123456789012",
"reactionData": [],
"botActor": null,
"user": {
"id": "user1234-5678-9012-3456-123456789012",
"name": "user@example.com",
"email": "user@example.com",
"url": "https://linear.app/example-org/profiles/user"
},
"issue": {
"id": "12345678-1234-1234-1234-123456789012",
"title": "Support multiple agents",
"teamId": "team1234-5678-9012-3456-123456789012",
"team": {
"id": "team1234-5678-9012-3456-123456789012",
"key": "TEAM",
"name": "Example Team"
},
"identifier": "TEAM-13",
"url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents"
}
},
"url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents#comment-comment1",
"type": "Comment",
"organizationId": "org12345-1234-1234-1234-123456789012"
},
"new_comment": {
"id": "comment1-2345-6789-0123-456789012345",
"body": "@blocks can you look into this?",
"user": {
"id": "user1234-5678-9012-3456-123456789012",
"name": "user@example.com",
"email": "user@example.com"
},
"issue": {
"id": "12345678-1234-1234-1234-123456789012",
"identifier": "TEAM-13",
"title": "Support multiple agents"
},
"createdAt": "2025-09-10T01:35:32.519Z",
"updatedAt": "2025-09-10T01:35:32.510Z"
}
}
def agent(input):
action = input.get("action")
issue = input.get("issue")
organization = input.get("organization")
raw_data = input.get("$raw")
new_comment = input.get("new_comment")
Fields
string
The action that occurred on the issue comment.
Show action values
Show action values
string
A comment was created on the issue.
object
The issue that the event is on.
Show issue properties
Show issue properties
string
The id of the issue.
number
The number of the issue.
string
The title of the issue.
string
The description of the issue.
number
The priority of the issue.
string
The label for the priority.
object
object
object|undefined
The assigned user for the issue. May be undefined if no one is assigned.
object
object[]
The labels attached to the issue.
string
The url of the issue.
string
The identifier of the issue.
string
The date/time the issue was created.
string
The date/time the issue was updated.
object
The organization associated with the Linear project.
Show organization properties
Show organization properties
string
The Linear organization id.
object
Raw webhook data from Linear containing additional metadata.
object
The comment that was created on the issue.
Show new_comment properties
Show new_comment properties
string
The id of the comment.
string
The content/body of the comment.
string
When the comment was created.
string
When the comment was last updated.
object

