I want to use the scriptrunner plugin to return a match when a custom field (Related JIRA Issues) CONTAINS - so matches, the issueKey. We have this field synced so that it returns on particular clients, but we want to know when the actual issue is the one that has the client flagged.
So I want to know if theres a way to use issueFieldMatch for issuekey IN Related Jira Issues. I've tried
"issueFunction in issueFieldMatch('project=XX AND Related JIRA Issue(s) is not EMPTY','issueKey', 'Related JIRA Issue(s)')"
and other variations, but it comes back and tells me that issueKey is not a field. Is this not possible?