Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Enhanced Search query returning too many results - how to fix?

Janene Pappas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2020

Using ScriptRunner, I've created an Enhanced Search to find issues with a unicode character (raised hand): 

issueFunction in issueFieldMatch("project = ops", "comment", "\u270b")

This was working well until today and now is apparently returning too many results and I'm at a loss as to how to fix this. I've attempt to add a date restriction at the beginning like so

created >= "-5d" and ... 

but this has not helped at all. The query continues to fail with too many results. Suggestions please?

1 answer

1 accepted

0 votes
Answer accepted
Janene Pappas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2020

I've figured this out. I didn't realize I could add another clause in the first parameter. 

 

issueFunction in issueFieldMatch("project = ops and created >= -5d", "comment", "\u270b")

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events