Forums

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

ScriptRunner Listener Fuzzy Search on Summary

Edward Greathouse
Contributor
July 31, 2018

ScriptRunner_listeners_edit.PNGScriptRunner_Listeners.PNGHi,

I have three issue summaries:

1. Pilot
2. Test Pilot
3. PilotTest

I would like the appropriate groovy script condition that will return true for all three cases. I'm attempting to create a "Send Custom Email" Listener using Script Runner. I have tried:

1. issue.summary ==~ /Pilot/
2. issue.summary.contains "Pilot"

But this does not work. Any help would be greatly appreciated.

1 answer

1 accepted

1 vote
Answer accepted
Mark Markov
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.
July 31, 2018

Hello @Edward Greathouse

issue.summary.contains("Pilot")

Should work.

Edward Greathouse
Contributor
July 31, 2018

That worked! Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events