This is the example code for a PostFunction to transition a linked Issue in status X to another status of the workflow. Very easy with Adaptavist Scriptrunner. See this code.
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.
Some examples of the "resyntax" conversion in Groovy with explicit option. See the entire API changes list here JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA … Continue reading Migrating Groovy scripts from JIRA 6 to JIRA 7
The best way is using @Grab to download in Runtime the LDAP library from Apache.org servers. More info about the class