Hello, I have read numerous posts on how to find issues that have no child issues using scriptrunner. None of them work for my use case.
We have an issue hierarchy with Initiatives above. I can query for Epics with no child issues using issuetype = epic AND issueFunction not in hasLinks("is Epic of"). But I cannot do this for the next level up for initiatives with no Epic child issues.
Any ideas without buying an add-on? (BTW, this does not work: type = Initiative AND issuefunction not in linkedIssuesOf("type=initiative", "is child of"))
Thank you.
It looks to me like you're querying the link type in the wrong direction on Initiatives; whereas on Epics you're querying "is Epic of" (top-down), on Initiatives you're querying "is child of" (bottom-up).
type = Initiative AND issuefunction not in linkedIssuesOf("type=initiative", "is child of") is actually querying Initiatives which are not children of other Initiatives. A better query would be:
type = Initiative AND issuefunction not in linkedIssuesOf("type = Epic", "Parent of")
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.