Created
August 21, 2023 07:46
-
-
Save vikrantyadav11/478131c0a5c8e999cbd5465e31ca25a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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