Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Find String in comment

MG I'm New Here Jan 07, 2022

Hi

I wrote a scriptField that display last comment and named: "lastComment";

and now I want return issues that have "xxx" in last comment.

for example :

In advance search ; user wrote : " lastComment ~ "xxx"  " 

I dont know how do I find "xxx" in any search ?(I used lastComment.getBody().find() , but how do I get search expression from user.)

"xxx" is expression that user searched and can different. 

thanks

1 answer

Hi

Assuming you've got the Scriptrunner plugin, how about this?

issueFunction in issueFieldMatch ("project=ABC", "lastComment", "xxx")

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you