We are running the Labs feature "paralell sprints" and are currently hosting 2 sprints in the same board against the same backlog.
Trying to get the Days Remaining in sprint to work on our dash. The gadget is totally not working, see the snapshots below for more info:
https://dl.dropboxusercontent.com/u/33686/Atlassian/Screen%20Shot%202013-05-07%20at%2014.52.43.png
https://dl.dropboxusercontent.com/u/33686/Atlassian/Screen%20Shot%202013-05-07%20at%2014.52.49.png
https://dl.dropboxusercontent.com/u/33686/Atlassian/Screen%20Shot%202013-05-07%20at%2014.53.13.png
https://dl.dropboxusercontent.com/u/33686/Atlassian/Screen%20Shot%202013-05-07%20at%2014.53.24.png
You actually can ignore the partial results in the current version.
Here is a sample console script that does this:
import com.onresolve.scriptrunner.ldap.LdapUtil
import org.springframework.ldap.core.AttributesMapper
import org.springframework.ldap.core.LdapTemplate
import javax.naming.directory.Attributes
import javax.naming.directory.SearchControls
LdapUtil.withTemplate('test ldap') { ldapTemplate ->
(ldapTemplate as LdapTemplate).setIgnorePartialResultException(true)
ldapTemplate.search("", "(cn=p6s)", SearchControls.SUBTREE_SCOPE, { Attributes attributes ->
def map = [:]
map.cn = attributes.get('cn').get()
map.memberOf = attributes.get('memberOf').getAll().collect()
map
} as AttributesMapper<String>)
}
You have to explicitly cast the ldapTemplate generated by the scriptrunner LdapUtil to LdapTemplate because by default it's an instance of LdapOperations which is the interface.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.