> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-agentix/detect-investigate-and-respond-to-threats/investigation-and-response/investigate-issues/issue-investigation-actions/update-issue-fields.md).

# Update issue fields

Update issue fields during investigations in Cortex AgentiX.

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=high
```

{% hint style="warning" %}

### Important

Do not use the `setIssue` command to assign an owner to an issue. The legacy `owner` field is deprecated and will not update the issue assignee in Cortex AgentiX. To assign or change the user assigned to an issue, use the `!core-update-issue` command.
{% endhint %}

### core-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\
  &#x20;`!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.

{% hint style="info" %}

### Tip

You can create custom issue statuses and resolution reasons, and use the `setIssueStatus` command to set these custom statuses for issues.

For example, when a user starts investigating an issue, the issue status is automatically changed from **New** to **Under Investigation**. In some cases, it is useful to create an interim status, such as **Triage**. After you create the custom status, the new status will be available for selection. To create a custom status, follow the instructions in [Create custom case statuses and resolution reasons](/cortex-agentix/configure-cortex-agentix/cases-and-issues-configuration/customize-your-cases/create-custom-case-statuses-and-resolution-reasons.md).
{% endhint %}

#### 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`, run

  ```programlisting
  !setIssueStatus status="Resolved - Known Issue"
  ```
* To change the issue status to custom status `Triage`, run

  ```programlisting
  !setIssueStatus status=Triage
  ```

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>You must create a custom status before you can select it.</p></div>

#### 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.

![setAlertStatus\_playbook\_example.png](https://404732257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FocwvgxtzkvBHMLbPsZuG%2Fuploads%2Fgit-blob-d88247f7da993ba4e3ecf486adac970efc1db542%2F0433f525106cdb9443fce93fd8fb967379c402671af56449a120ec129f70fb48.png?alt=media)

### **Use issue timer field commands manually in the CLI**

You can manage the timers for a specific issue by running commands manually in the CLI. By running CLI command you can to manage timers on a more granular level within specific issues when the need arises. For example, for a high severity issue you might need to decrease the response time.

<details>

<summary>Set timer fields</summary>

Use the `setIssue` command to set a specific issue due date, or to set a specific timer field in an issue. If you add the `sla` parameter to the command, it sets the time for the issue's due date. If you also add the `slaField` you set the timer for the issue field.

Example 58.

To change the **Time to Assignment** field target to 30 minutes in the current issue, run the following command:

```programlisting
!setIssue sla=30 slaField=timetoassignment
```

To change the timer to February 1, 2024, at 11.12 am, run the following command:

```programlisting
!setIssue sla=2024-02-01T11:12
```

{% hint style="info" %}

### Note

When defining the values for the `slaField` use the machine name for the field, which is lowercase and without spaces. You can check the machine name by editing the issue field.
{% endhint %}

</details>

<details>

<summary>Start or stop timer fields</summary>

Run the following commands in the CLI:

<table><thead><tr><th width="130">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>startTimer</code></td><td><p>Starts the timer.</p><p>This command can also be used to restart a paused timer.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Timer fields are not started automatically when an issue is created unless run in a playbook.</p></div></td></tr><tr><td><code>pauseTimer</code></td><td><p>Pauses the timer.</p><p>Use this command when a timer field has already started.</p></td></tr><tr><td><code>stopTimer</code></td><td><p>Stops the timer.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>After a timer field is stopped, before you can start the timer again you must reset the timer using the <strong>resetTimer</strong> command.</p><p>Timers are automatically stopped when an issue is closed.</p></div></td></tr><tr><td><code>resetTimer</code></td><td><p>Clears all fields for the timer.</p><p>This command must be used before restarting a timer that was stopped.</p></td></tr></tbody></table>

{% hint style="info" %}

### Note

When running commands in the CLI, you can specify the `alertID` to change the timer for a different issue.
{% endhint %}

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-agentix/detect-investigate-and-respond-to-threats/investigation-and-response/investigate-issues/issue-investigation-actions/update-issue-fields.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
