Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,149
Community Members
 
Community Events
168
Community Groups

How to use scriptrunner's issueFieldExactMatch with component

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

184 views 1 6
Read article

Atlassian Community Events