Supported parameter attributes

A list of parameter attributes which are supported in ScriptRunner Actions

You can use the following parameter attributes in ScritRunner Actions.

Parameter attribute Description
[Parameter(Mandatory = $true)]
  • Indicates that the parameter is required.
  • The action can only be started if this parameter contains a value.
[Parameter(ParameterSetName = 'Set 1')]
  • Displayed as a drop-down list.
  • After selecting the parameter set, only the parameters contained in this set are displayed.
ValidateSet
  • Displayed as a drop-down list.
  • If the parameter is declared as an array, multiple selection is possible.
ValidateRange, ValidateCount
If the value is outside the range, the action cannot be started.
ValidateLength
If the length of the value is outside the range, the action cannot be started.
ValidatePattern
If the value doesn't match the regular expression pattern, the action cannot be started

 

This page has been automatically translated and may contain grammatical errors or inaccuracies