commentsToContext
This Script is part of the Common Scripts Pack.#
Use this script to take the comments of a given entry ID and stores them in the incident context, under a provided context key.
In order to access the last executed task's comments, provide ${lastCompletedTaskEntries.[0]} as the value for the entryId input parameter.
Script Data#
| Name | Description | 
|---|---|
| Script Type | javascript | 
| Tags | Utility | 
Inputs#
| Argument Name | Description | 
|---|---|
| entryId | The entry ID to get the comments from. | 
| contextKey | The context key to store comments into. | 
| listSeperator | If value is a list - provide a list seperator. | 
Outputs#
There are no outputs for this script.