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.