checkValue

Gets a value and return it. This is to be used in playbook conditional tasks - get a value from incident field, label or context, and act accordingly. If an array is returned. the first value will be the decision making value.

javascript · Common Scripts

Details

IDcheckValue
Languagejavascript
From Version5.0.0
TagsUtility Condition

README

Gets a value and returns it. Use this in playbook conditional tasks. Get a value from incident field, label or context, and act accordingly.
If an array is returned. the first value will be the decision making value.

Script Data


Name Description
Script Type javascript
Tags Utility, Condition

Inputs


Argument Name Description
value The value to check.

Outputs


There are no outputs for this script.

//check if value is provided, otherwise return false
//needed for custom fields which if not set initially will be null
return (args.value) ? args.value : false;