Most of the provided examples use some base groovy classes and utilities located in separate groovy files. Thanks to using them, our examples are less complex and show the quality details necessary in real projects. It is not required to use them, however, you may find them useful while organizing your code.
Our examples are using:
Class | Package | Description |
---|---|---|
ConfigUtils | global/config/ ConfigUtils.groovy | Allows externalizing configuration in properties or groovy files. It also supports the loading of the environment-specific configuration. |
FieldUtils |
| Allows getting references to JIRA fields - the system and the custom ones, based on their code or id. Thanks to that, you can use constants located in enumerations like |
CustomFieldCode | global/fields/ CustomFieldCode.groovy | Enumeration for JIRA custom field codes. Thanks to that, you can track custom fields references in the scripts code. |
SystemFieldId | global/fields/ SystemFieldId.groovy | Enumeration for JIRA system field codes. Thanks to that, you can track system fields references in the scripts code. |
BaseDecisionTableWorkflowFunction | example/decisiontable/ BaseDecisionTableWorkflowFunction.groovy | Base class supporting the implementation of workflow operations (post-function, validator, condition). It provides |
BaseFieldOperatorWorkflowFunction | example/decisiontable/ BaseFieldOperatorWorkflowFunction.groovy | Base class which is an extension of |
BaseFieldOperatorBehaviors | example/decisiontable/ BaseFieldOperatorBehaviors.groovy | Base class supporting the implementation of field behaviors. It provides |
BaseDecisionTableBehaviors | example/decisiontable/ BaseDecisionTableBehaviors.groovy | Base class which is an extension of |
BasicFieldBehaviorOperator | example/decisiontable/ BasicFieldBehaviorOperator.groovy | Illustrative helper class for field operations in Script Runner Behaviors scripts. It provides additional logic for a simple form fields setup. |
OptionFieldBehaviorOperator | example/decisiontable/ OptionFieldBehaviorOperator.groovy | Illustrative helper class for field operations in Script Runner Behaviors scripts extends |
Attachments
If you want to use groovy superclasses and utilities, remember to update using packages.