Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Greenhopper Days Remaining in Sprint Gadget problem

Jakob Rödström
Contributor
May 7, 2013

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

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 10, 2023

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.

TAGS
AUG Leaders

Atlassian Community Events