Skip to main content

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#


NameDescription
Script Typejavascript
TagsUtility

Inputs#


Argument NameDescription
entryIdThe entry ID to get the comments from.
contextKeyThe context key to store comments into.
listSeperatorIf value is a list - provide a list seperator.

Outputs#


There are no outputs for this script.