Forums

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

Trying to filter issue on word in summary

Neha Madan July 27, 2018

I wrote a query to filter issue on aword in summary:

summary ~ "\\[CF\\]" AND summary !~ "CF"

where I want issues where summary has '[CF]' but not just 'CF'. I only want to find those with brackets on. This doesn't work.

Any help is appreciated.

4 answers

2 votes
Charly [DEISER]
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 27, 2018

Hi @Neha Madan

Try with this: issueFunction in issueFieldMatch("", summary, "\\[CF\\].*")

Hope this helps

Neha Madan July 27, 2018

Thanks Carlos but as soon as i use this 

issueFunction in issueFieldMatch('', 'summary', '\\[CF\\]')

 

The rapid board stops loading issues. And there wasn't any syntax error. Am i doing something wrong here?

When I used this in 'search for issues' 

i got these errors

  • Error in scripted function: issueFieldMatch, see below
  • NoViableAltException(59@[])

 

0 votes
Neha Madan July 27, 2018

Yeah, Thanks Moses! I limited it and it gives result. So I am using it for card color on rapid board.

If it's a single issueFieldMatch query it works fine but if I do something like

issueFunction in issueFieldMatch("project = 'ABC'" ,"summary", "\\[TEST1\\]") OR issueFunction in issueFieldMatch("project = 'ABC'" ,"summary", "\\[TEST2\\]")

I cannot add this under card color.

but this is working under quick filters successfully

0 votes
Moses Thomas
Community Champion
July 27, 2018

@Neha MadanThe query provided by  Carlos is   correct  you  will  need  to  wait for the Query to  generate  the  result it  is  not that it hang its  is search,  performing  match.  but  if  you  want to  make the query  faster then you  will  have to  limit project 

 Syntax  issueFieldMatch(Subquery, Fieldname,  reg ex)  now you should have something  like  this  to  make  it faster

issueFunction in issueFieldMatch("Project in (AT, ...)" , "summary", "\\[CF\\].*")

 

Best!

0 votes
Neha Madan July 27, 2018

Suggest an answer

Log in or Sign up to answer