New Groovy PostFunction: Add fixed watcher on create issue transition

Here the sample code to add a fixed watcher on the create issue transition of a Workflow. Very easy and useful script! This is a script PostFunction of the Adaptavist Groovy ScriptRunner Atlassian JIRA Plugin. You can add, for example, a user linked to an email of a distribution list.

Advertisements

How to create a new Listener with Groovy ScriptRunner

Create a new file named Example.groovy Copy the file in the JIRA server, path {JIRA_HOME}/scripts/{package}/Example.groovy NOTE: if the script contains "package example.Example" {package} must be "example" in this case Then define the Custom Listener in JIRA > Add-ons > ScriptRunner Listeners In Note: put general Information, for example "MyFirstListener Example" In Project Key: put all the … Continue reading How to create a new Listener with Groovy ScriptRunner