How to create a Jira custom field with options from an external REST API

To 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 More

How 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 More