Add a comment to an existing case.
The ID of the case to comment on.
The ID of the parent comment if this is a reply.Default: null.
The ID of the workflow to run when the comment is created.Default: null.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
Reply to a top-level case comment.
The ID of the case containing the parent comment.
The ID of the top-level comment to reply to.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
Update an existing case comment.
The ID of the comment to update.
The updated comment content.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
List all comments for a case.
The ID of the case to get comments for.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
List comment threads for a case.
The ID of the case to get comment threads for.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
Get the full thread for a comment ID.
The ID of a comment within the thread.
Examples
Manage case comments
- ref: create_comment
action: core.cases.create_comment
args:
case_id: ${{ TRIGGER.case_id }}
content: "Initial triage started."
- ref: reply_to_comment
action: core.cases.reply_to_comment
depends_on:
- create_comment
args:
case_id: ${{ TRIGGER.case_id }}
parent_comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Added IOC context."
- ref: update_comment
action: core.cases.update_comment
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}
content: "Initial triage started. Waiting on endpoint data."
- ref: list_comments
action: core.cases.list_comments
args:
case_id: ${{ TRIGGER.case_id }}
- ref: list_comment_threads
action: core.cases.list_comment_threads
args:
case_id: ${{ TRIGGER.case_id }}
- ref: get_comment_thread
action: core.cases.get_comment_thread
depends_on:
- create_comment
args:
comment_id: ${{ ACTIONS.create_comment.result.id }}