I'm trying to find issues that have exactly one component and the value is COMPONENT_NAME. I've tried:
issueFunction in issueFieldExactMatch("project = \"PROJECT_NAME\"", components, "COMPONENT_NAME")
and
issueFunction in issueFieldExactMatch("project = \"PROJECT_NAME\"", components, "[COMPONENT_NAME]")
but neither give me any results, even though I can see issues that have component set to ONLY COMPONENT_NAME in PROJECT_NAME.
Anyone know how I can query COMPONENT_NAME correctly? Or is there a way to print out the values scriptrunner is seeing from a JQL query?