Hi Folks,
I've got a simple query ScriptRunner JQL query that returns all of the epics that have a link to a Confluence wiki page or are mentioned on a Confluence wiki page:
project = PROJECT and issuetype = epic and (issueFunction in linkedIssuesOfRemote("relationship", "mentioned in") or issueFunction in linkedIssuesOfRemote("Wiki Page"))
This query currently returns about 150 issues, including all of those which. However an issue may be mentioned in a number of different pages that I don't care about, which means that my query is returning a number of false positives.
I can tag the pages in Confluence with a label or name prefix/suffix. But I don't know how to query in ScriptRunner to only search for pages where this confluence label or prefix/suffix is set.
Can anyone help me with creating a query?