CaseMgmtDisplayLabels
Dynamic section that will display the Labels for an Incident in a markdown table.
- Type
- python
- Pack
- CaseManagement-Generic
Source
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def main():
try:
labels = demisto.incident().get("labels", [])
if labels:
readable = tableToMarkdown("Alert Information", labels)
else:
readable = "No labels found on Incident"
return_results(CommandResults(readable_output=readable, ignore_auto_extract=True))
except Exception as ex:
return_results(f"Failed to execute BaseScript. Error: {ex!s}")
if __name__ in ("__main__", "__builtin__", "builtins"):
main()
README
Dynamic section that will display the Labels for an Incident in a markdown table.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.8.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.