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.

commonfields:
  id: checkValue
  version: -1
name: checkValue
script: ''
type: javascript
tags:
- Utility
- Condition
comment: "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. \nIf\
  \ an array is returned. the first value will be the decision making value."
enabled: true
args:
- name: value
  default: true
  description: Value to check
scripttarget: 0
fromversion: 5.0.0
tests:
- No tests