Class DefaultGlobalScope
java.lang.Object
com.codebarrel.automation.api.component.smartvalues.impl.DefaultGlobalScope
Class that contains all methods you want to make available to scripts
-
Method Summary
Modifier and TypeMethodDescriptionasDateTime(Object obj) Example usage: Use this to parse external data or non-date data into a Date field.base64Decode(String str) base64Encode(String str) defaultText(Object obj, String defaultString) Example usage: When you have possibly blank strings that you want to display a default obj when the text is emptyecho()static StringhtmlEncode(String str) jsonEncode(String str) math()now()today()
-
Method Details
-
now
-
today
-
echo
-
echo
-
jsonEncode
-
jsonEncode
-
base64Encode
-
base64Encode
-
base64Decode
-
base64Decode
-
htmlEncode
-
htmlEncode
-
xmlEncode
-
xmlEncode
-
urlEncode
-
urlEncode
-
increment
-
increment
-
increment
-
math
-
math
-
append
-
string
-
asDateTime
Example usage: Use this to parse external data or non-date data into a Date field. This supports numbers that are millis-since Epoch and dates that are the in the Jira date format
{{asDateTime(webhookData.result._time)}} {{asDateTime("2021-03-26")}} {{asDateTime("1616974121723")}} -
getString
-
number
-
defaultText
Example usage: When you have possibly blank strings that you want to display a default obj when the text is empty
Field label: {{defaultText(issue.My possibly empty field,"None")}} -
ifOp
-
ifOp
-
ifOp
-
equals
-
exists
-
not
-
and
-
or
-