Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vikrantyadav11/478131c0a5c8e999cbd5465e31ca25a9 to your computer and use it in GitHub Desktop.
Save vikrantyadav11/478131c0a5c8e999cbd5465e31ca25a9 to your computer and use it in GitHub Desktop.
import groovy.transform.BaseScript
import com.onresolve.jira.groovy.user.FieldBehaviours
@BaseScript FieldBehaviours fieldBehaviours
final String screenName = 'Resolution screen'
//final String targetTransition = 'Accept'
def comment = getFieldById("comment")
def defaultValue = """_Describe any changes this new feature/improvement brings to the customer experience and/or their existing applications. These can be changes to:_
* _reference objects (deleted, changed, or new GUCs, system views, system tables)_
* _command syntax (new, changed, or removed command flags)_
* _workflow changes_""".replaceAll(/ /, '')
if (fieldScreen.name == screenName && getActionName() == "Done"){
if (!comment.formValue){
comment.setRequired(true)
comment.setFormValue(defaultValue)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment