Skip to main content

SearchIssuesAgentix

This Script is part of the Common Scripts Pack.#

Searches Cortex Issues.

Script Data#


NameDescription
Script Typepython3
TagsUtility
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
idA comma-separated list of incident IDs by which to filter the results.
nameA comma-separated list of incident names by which to filter the results.
statusA comma-separated list of incident statuses to filter the results by. Options: new, in_progress, and resolved.
notstatusA comma-separated list of incident statuses to exclude from the results. Options: new, in_progress, resolved.
reasonA comma-separated list of incident close reasons by which to filter the results.
fromdateFilter by from date (e.g. "3 days ago" or 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
todateFilter by to date (e.g. "3 days ago" or 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
fromclosedateFilter by from close date (e.g. 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
toclosedateFilter by to close date (e.g. 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
fromduedateFilter by from due date (e.g. 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
toduedateFilter by to due date (e.g. 2006-01-02T15:04:05+07:00 or 2006-01-02T15:04:05Z).
levelFilter by Severity.
ownerFilter by incident owners.
detailsFilter by incident details.
typeFilter by incident type.
queryUse free form query (use Lucene syntax) as filter. All other filters will be ignored when this filter is used.
pageFilter by the page number.
trimeventsThe number of events to return from the alert JSON. The default is 0, which returns all events.
Note that the count is from the head of the list, regardless of event time or other properties.
sizeNumber of incidents per page (per fetch).
limitThe maximum number of incidents to be returned.
sortSort in format of field.asc,field.desc,...
searchresultslabelIf provided, the value of this argument will be set under the searchResultsLabel context key for each incident found.
summarizedversionIf enabled runs a summarized version of this script. Disables auto-extract, sets fromDate to 30 days, and minimizes the context output. You can add sepcific fields to context using the add_fields_to_summarize_context argument. Default is false.
includeinformationalWhen the value is set to 'True', informational severity alerts will return as part of the results. The ‘fromdate’ and ‘todate’ arguments must be provided to use this argument. The maximum value currently supported for the 'fromdate' argument to retrieve informational incidents is 5 hours. If a value greater than this is provided, it will be adjusted to 5 hours ago. To retrieve only informational incidents, use the `query` argument and include this limitation within the query. Default is false.
add_fields_to_summarize_contextA comma seperated list of fields to add to context when using summarized version, (default- id,name,type,severity,status,owner,created,closed).

Outputs#


PathDescriptionType
foundIssues.idA list of incident IDs returned from the query.Unknown
foundIssues.nameA list of incident names returned from the query.Unknown
foundIssues.severityA list of incident severities returned from the query.Unknown
foundIssues.statusA list of incident statuses returned from the query.Unknown
foundIssues.ownerA list of incident owners returned from the query.Unknown
foundIssues.createdA list of the incident create date returned from the query.Unknown
foundIssues.closedA list of incident close dates returned from the query.Unknown
foundIssues.labelsAn array of labels per incident returned from the query.Unknown
foundIssues.detailsDetails of the incidents returned from the query.Unknown
foundIssues.dueDateA list of incident due dates returned from the query.Unknown
foundIssues.phaseA list of incident phases returned from the query.Unknown
foundIssues.incidentLinkA list with links to the incidents returned from the query.Unknown
foundIssues.searchResultsLabelThe value provided in the searchresultslabel argument.String