This is an example os Script Listener using the plugin Adaptavist Scriptrunner. In this example we will try to sync components between Jira projects. This example of sync is only one direction, in other words, there is a “master” Project where we add new Components, and those Components are added at same time to the…
Read MoreHow to read attributes from LDAP in Jira using Groovy
Example script code in Groovy to read attributes from persons of the LDAP in Jira Server or Datacenter by MrAddon @GrabResolver(name=’apache-snapshot’, root=’http://repository.apache.org/snapshots/’) @Grab(group=’org.apache.directory’, module=’groovyldap’, version=’0.1-SNAPSHOT’) import javax.naming.Context; import javax.naming.NameNotFoundException; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.directory.BasicAttribute; import javax.naming.directory.BasicAttributes; import javax.naming.directory.ModificationItem; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; import javax.naming.ldap.InitialLdapContext; import javax.naming.ldap.LdapContext; import javax.naming.ldap.LdapName; import java.text.MessageFormat;…
Read MoreExample of Listener with Groovy Amigo for Jira
In this example we want to create a simple Listener for Jira to reopen issues when are closed/done and someone comments the ticket. Imagine, we have a ticket in status “DONE” And there is a “new comment”. Then, the Listener must reopen the issue, and the ticket becomes in “TO DO” status. In this example,…
Read MoreJira Groovy example script to get Tempo Teams Worklogs using REST API
This post is the continuation of: Jira Groovy Postfunction example to set Tempo Team and Tempo Account fields. Here another groovy script example to get the Worklogs of the Tempo Teams using the Tempo Timesheets REST API and Adaptavist Scriptrunner.
Read MoreJira Script Listener in groovy to create a ticket of VERSION on Release action in an Agile board
Sometimes we need to create a special ticket for the Versions that we Release (with the subtasks that composes the version listed inside the “Version” ticket, for example as linked issues). Using Groovy with Adaptavist Scriptrunner and JIRA this task is very easy. Just we need to configure an inline Script Listener in the Event:…
Read MoreJIRA Groovy Script to Transition issues from a JQL query using the Transition name and not the Transition ID
Sometimes we need to transition issues from one status to other, but these issues can be from different projects and can be from different Workflows. In this case, probably the Transition IDs will be different. For this reason we need to develop a “discover transition” function. See below an example of how we can start…
Read MoreHow to sync the Original Estimate from one issue to other linked with Scriptrunner Listener and JIRA
We can create a Script Listener triggered at UPDATE ISSUE event. Just copy/paste the code and configure the name of the Type of Link. Don’t forgive to set in the Screens the System field “Time Tracking” to set the Original Estimate!
Read MoreMigrating Groovy scripts from JIRA 6 to JIRA 7
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…
Read MoreNew groovy Listener to set the same fixversions to all subtasks in JIRA
Very easy!
Read MoreNew custom Listener to set DueDate of original ticket with 2 Days less in the tickets linked in JIRA with Groovy ScriptRunner
JIRA New Listener example: Clone ticket and Link and add Watchers
New example… remember, to add watchers to the ticket, the ticket must be created previously
Read MoreNew custom Listener for JIRA 6: Add label / Set label when issue created in project X
Veryyyy easy!
Read More