Update issue fields
Update fields associated with an issue.
You can update issue fields by running the setIssue and setIssueStatus commands in the CLI, in a script, or a playbook task.
You can run CLI commands in the War Room. When you start typing the CLI provides the available options and if you select an enum field, the CLI provides the available values.
setIssue
Use the setIssue command to update the values of standard and custom issue fields, such as severity, tags, or custom drop downs. The supported fields are presented in the list of arguments.
CLI example
You can change the issue severity to high:
!setIssue severity=highcore-update-issue
Use the core-update-issue command for system-level updates, including assigning users and linking issues to cases.
Assign an issue You can assign an issue to an analyst using the analyst's email address. CLI example
!core-update-issue ids=${issue.id} assigned_user_mail="analyst@abc.com"Link an issue You can link an unassigned issue to an existing case. CLI example
!core-update-issue ids=${issue.id} case_id="12345"
SetIssueStatus
Sets the status or resolution value for an issue. This command supports the status argument, which presents a list of status and resolution type values. The selected status is set in the custom_status field.
If you specify a resolution status, the issue is closed and the resolution_status and closeReason fields are updated to the same value as the custom_status field. If you specify a New, Reopened, or Under Investigation status, the issue remains open and the resolution_status and closeReason fields are empty.
Examples of using the setIssueStatus command in the CLI
The following examples show how to run the setIssueStatus command in the CLI. You can run CLI commands in the War Room. When you start typing, the CLI provides the available options and if you select an enum field, the CLI provides the available values.
To change the issue status to
Resolved - Known Issue, runTo change the issue status to custom status
Triage, run
Example of using the setIssueStatus command in a playbook
The following example shows how the setIssueStatus command can be used in a playbook task. In this example, the task sets a custom issue status (Triage). The custom issue status was created before setting up the playbook.

Last updated
Was this helpful?
