A simple script to obtain a list of the names of the statuses of your Jira By MrAddon
Read More
A simple script to obtain a list of the names of the statuses of your Jira By MrAddon
Read MoreFor this exercise we need a Jira and a Confluence installed, up and running. Now in Jira we need to install a free addon called “Easy Integrations for Jira” Once installed we need to configure it, we need to inform the URL of Confluence and a username and password to do the connection. Now open…
Read MoreObjetivos En el curso instalaremos Jira Server y Adaptavist Scriptrunner (antiguamente conocido como Groovy Scriptrunner). Explicaremos: Script fields, Script Postfunctions, Script Conditions, Script listeners, Script services, Escalation services, jql custom functions, Behaviours, built-in scripts y web fragments & custom REST endpoints. Daremos ejemplos y casos de uso, haremos ejercicios prácticos y explicaremos alternativas a Scriptrunner…
Read MoreTo do this exercise, we will use the famous plugin for Jira called Adaptavist Scriptrunner. First step, we need to create a REST Endpoint in our Jira Server. This REST Endpoint will query the external REST API to obtain the values and options (In this example we will query GitHub to obtain a list of…
Read MoreIn this exercise we want to create a new custom field of type Scriptfield of Scriptrunner Jira plugin. This script field will sum all the values of some customfield of its subtasks. Just go to Add-ons –> Scriptrunner –> Script Fields and create a new Script field like this (Total…): Now place a script like…
Read MoreIn this post we want to show how to change some parts of the web panels of the Jira Issue View context. We can start changing the default global settings of Jira (in the Advanced section). We can change the jira.table.cols.subtasks variable to add more fields to the web panel, also with the variable jira.view.issue.links.sort.order we…
Read MoreExample 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 MoreThere is no excerpt because this is a protected post.
Read MoreFor a large scripts exist a trick to reduce the complexity of the Script Fields if you use classes that can be “common” and reused between other Script Fields. For example, imagine we want to create a Script field that show a report HTML inside the tickets with the Lean metrics. Something like this: And…
Read MoreSometimes we need to know the “real” closing date of tickets, for different reasons: workflows with bad config (Resolve Issue screen missing in final statuses…), two Resolve Issue screens in Resolved and Closed statuses, etc. And, as always, we have a trick using the plugin Scriptrunner! It’s very simple, just create a Scripted custom field…
Read MoreUsually we want to create automatically subtasks in a transition and sometimes with a specific label. We use usually the plugin Adaptavist Scriptrunner in Jira Server to do tasks like this. Just creating a Postfunction in the Workflow. We can use the “Create Sub-task” script Postfunction with the usual parameters… In the “additional issue…
Read MoreWith Adaptavist Scriptrunner or MyGroovy plugins for Jira Server and a little groovy script we can validate/require or make mandatory the second drop down of a cascading field. Just create a Simple scripted validator in the transition! Example: Very easy! Example: By MrAddon
Read More