I was able to successfully setup the ldap connection but when I tried to run the sample script:
import com.onresolve.scriptrunner.ldap.LdapUtil
def cnList = LdapUtil.withTemplate('corporate') {
template -> template.search("", "(sn=Smi*)", SearchControls.SUBTREE_SCOPE, { attributes ->
attributes.get('cn').get() } as AttributesMapper<String>)
}
I'm getting the error: Unable to resolve class AttributesMapper
Jira version 8.5.1
Script Runner version: 5.7.0.1-p5
Hi @Jai_Nirwan
I have simillar case like you. Make sure that:
- you choose correct workflow in Guide workflow
- you put your code in server-side script in customfield_10500 section.
IMHO I will change your code a little bit and move first condition and use built-in conditions in Behaviours. Take a look on my configurartion:
Let me know if this help you :)
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.