> 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/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/incident-customization/incident-fields.md).

# Incident Fields

Use incident fields to accept or populate incident data coming from incidents. You create fields for information that arrives from third-party integrations in which you want to insert information. The fields are added to Incident Type layouts and are mapped using the Classification and Mapping feature.

Incident Fields can be populated by the incident team members during an investigation, at the beginning of the investigation, or prior to closing the investigation.

{% hint style="info" %}

### Note

Creating incident fields is an iterative process in which you continue to create fields as you gain a better understanding of your needs and the information available in the third-party integrations that you use.
{% endhint %}

You can set and update all system incident fields using the **`setIncident`** command, of which each field is a command argument.

### **Incident Field Types**

You can add the following field types, when adding a new field.

* Attachments : enables adding an attachment, such as .doc, malicious files, reports, images of an incident, etc.
* Boolean (checkbox)
* Date picker
* Grid (table): includes an interactive, editable grid as a field type for selected incident types or all incident types.
* HTML: you can configure the HTML Field by applying your own theme.
* Long text:
  * Long text is analyzed and tokenized.
  * Long text field entries are indexed as individual words, enabling you to perform advanced searches and use wildcards.
  * Case-insensitive.
  * Long text fields cannot be sorted and cannot be used in graphical dashboard widgets.
  * While editing a long text field, pressing enter will create a newline.
* Markdown: Add [markdown-formatted](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/get-started-in-cortex-xsoar/how-to-use-markdown.md) text as a **Template** which will be displayed to users in the field after the indicator is created. Markdown lets you add basic formatting to text to provide a better end-user experience.
* Multi select / Array: Includes two options a) Multi select from a pre-filled list b) An empty array field for the user to add one or more values as a comma separated list.
* Number: can contain any number. The default number is 0. Any quantity can be used.
* Role: roles assigned to the incident determine which users (by the role to which they are assigned) can view the incident.
* Short text:
  * Treated as a single unit of text, not indexed by word. Advanced search, including wildcards, is not supported.
  * Case sensitive by default, but can be changed to case insensitive when creating the field.
  * While editing a short text field, pressing enter will save and close.
  * Maximum length 60,000 characters.
  * Recommended use is one word entries. Examples: username, email address, etc.
* Single select
* Tags: accepts a single tag or a comma-separated list, not case sensitive.
* Timer/SLA: view how much time is left before an SLA becomes past due, as well as configure actions to take in the event that the SLA does pass.
* URL
* User : a user in the system to state a manager or fallback.

### **Basic Settings**

The following table lists the fields that appear in the Basic Settings page, and their descriptions. The Basic Settings page is available for the following field types:

* Long text
* Multi select
* Short text
* Single select
* Tags

| Name        | Description                                                                                                                                                                                     |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Placeholder | Optional text to display in the field when it is empty. This text will appear in the layout, but not in the created indicator. Available for Short text, Long text, Multi select / Array, Tags. |
| Values      | A comma separated list of values that are valid values for the field.                                                                                                                           |

### **Timer/SLA Fields**

The following table lists the fields specific to Timer/SLA fields, and their descriptions.

| Name              | Description                                                                                                                                                                                                                                                                                                                                                                        |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SLA               | Determine the amount of time in which this item needs to be resolved. If no value is entered, the field serves as a counter.                                                                                                                                                                                                                                                       |
| Risk Threshold    | Determine the point in time at which an item is considered at risk of not meeting the SLA. By default, the threshold is 3 days, which is defined in the global system parameter.                                                                                                                                                                                                   |
| Run on SLA Breach | <p>In the Run on SLA Breach field, select the script to run when the SLA time has passed. For example, email the supervisor or change the assignee.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Only scripts to which you have added the SLA tag appear in list of scripts that you can select.</p></div> |

### **Attributes Parameters for Incident Fields**

The following tables list the fields that are common to all Incident Fields.

| Name                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Script to run when field value changes                       | The script that dynamically changes the field value when script conditions are met. For a script to be available, it must have the **`field-change-triggered`** tag, when defining an automation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Run the field triggered script after the new value is saved. | <p>When configuring a field trigger script, you have the following options:</p><ul><li><p>Unchecked (recommended for incident modification)</p><p>Leave unchecked for the script to execute before the incident is stored in the database. This enables the script to modify the incident field values using commands like <code>!setIncident</code> or other functions, such as <code>demisto.set.</code> Useful in most cases, including performing validations and starting and stopping Timer/SLA fields.</p></li><li><p>Checked</p><p>The script executes after the incident is stored in the database. This mode is intended for actions that use the new field value but do not change the incident itself (such as logging data to an external service).</p></li></ul><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>If you check <strong>Run the field triggered script after the new field value is saved</strong>:</p><ul><li><p>Inability to modify an incident</p><p>The script cannot modify any incident field, including the field that triggered the script or any other custom field.</p></li><li><p><code>setIncident</code></p><p>Any attempt within the script to use <code>demisto.executeCommand("setIncident"</code>) (for example, to update a custom field with a new value) does not update the context data. The War Room may incorrectly show an entry suggesting the field value was changed.</p></li></ul></div> |
| Field display script                                         | Determines which fields display in forms, as well as the values that are available for single-select and multi-select fields. For more information, see [Incident Field Trigger Scripts](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/incident-customization/incident-fields/incident-field-trigger-scripts.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Add to all incident types                                    | Determines for which incident types this field is available. By default, fields are available to all incident types. To change this, clear the **Associate to all** checkbox and select the specific incident types to which the field is available.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Default display on                                           | <p>Determines at which point the field is available.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>This attribute affects when the field is available for edit. When <strong>New/Edit</strong> is selected, the field can be set using <code>setIncident</code> only. When <strong>Close</strong> is selected, it can be set using the <code>closeInvestigation</code> command. When <strong>Both</strong> is selected, it is available to be set using both <code>setIncident</code> and <code>closeInvestigation</code>.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Edit Permissions                                             | Determines whether only the owner of the incident can edit this field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Make data available for search                               | <p>Determines if the values in these fields are available when searching.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>In most cases, Cortex XSOAR recommends that you select this checkbox so values in the field are available for indexing and querying. However, in some cases, to avoid adverse affects on performance, you should clear this checkbox. For example, if you are ingesting an email to an email body field, we recommend that you not index the field.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

### **Incident Field Examples**

The following section shows several examples of common fields that are used in real-life incidents.

**False Positive**

Below is an example of a mandatory Incident field "False Positive" to be filled at time of Incident Close. The Field can have a value YES or NO and the SOC admin should be able to query or run report based on this field. After this field is added, all incidents will need to have this filled in before an incident can be marked closed.

![incident-single-select-false-positive.png](/files/GcDpbzc3CYG3lKWiwxrH)

#### **SLA Fields**

The following SLA field can be used to trigger a notification when the status effecting the SLA of an incident changes. If the SLA is breached, we have configured the field such that an email is sent to the owner's supervisor.

![incident-field-sla.png](/files/hAHv5YszQ9TQZ0tOMb1D)

### **Troubleshooting Conflicts with Custom Incident Fields**

When trying to download a content update, you receive the following message:

**`Warning: content update has encountered some conflicts`**

This occurs when a content update has an incident field with the same name as a custom incident field that already exists in Cortex XSOAR.

**Solution**

Click Install Content to force the update and retain your custom incident field. The content update will install without the system version of the incident field.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/incident-customization/incident-fields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
