Forums

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

Search text inside square bracket

fahminlb33 November 3, 2020

Most of our tickets is grouped inside square bracket like [BE], [FE], etc.

How can I search subtasks starting with those words? I've tried:

  • text ~ "\\[BE\\]" (empty result)
  • text ~ "\\[BE\\]*" (empty result)
  • text ~ "BE" (empty result)
  • text ~ "BE*" (returns tasks that contains BE* but not tasks with BE inside brackets)

5 answers

1 accepted

0 votes
Answer accepted
Alexander Pappert
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.
November 3, 2020

is this working?

summary ~ [BE]*

fahminlb33 November 3, 2020

Hi @Alexander Pappert 

Thanks for your answer, but it doesn't work for me. I've tried entering it but got this error:

`Error in JQL Query: Expecting either a value, list or function but got '['. You must surround '[' in quotation marks to use it as a value. (line 1, character 11)`

Alexander Pappert
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.
November 3, 2020

@fahminlb33  ok, we have to ignore the first [, try

~ BE]*

Like Alexander Gerasimov likes this
Alexander Pappert
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.
November 3, 2020

or like this:

https://confluence.atlassian.com/jirasoftwareserver/search-syntax-for-text-fields-939938747.html 

 

  • Advanced search: Find all issues that contain the phrase Jira Software.

    text ~ "\"Jira Software\""
Like Rylan Maschak likes this
fahminlb33 November 3, 2020

Cuplikan layar 2020-11-03 200034.png

 

Still no luck. The problem is the text I'm looking for is inside square bracket, from several links on Google, I've come to this topic

https://jira.atlassian.com/browse/JRASERVER-25092

It seems that up until now we can't search text that surrounded by special characters?

Alexander Pappert
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.
November 3, 2020

maybe you can use some script addons (JMCF or automation for jira), to copy the summary into another text field and then shorten it from

[BE] abc
to
BE

You could then use the JQL search

I did something similar with JMCF https://marketplace.atlassian.com/apps/27136/jira-misc-custom-fields-jmcf?hosting=server&tab=overview 

fahminlb33 November 3, 2020

Thank you, I'll look into it.

Like Alexander Pappert likes this
Like # people like this
5 votes
PEIGNOT Erwan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2022

For me, it worked like this :

summary ~ "\\[RRR\\]"

Deleted user July 5, 2022

This one worked for me. All other variations above did not. This is in the "Board Settings" area where I was trying to get some JQL based quick filters created. Example: summary ~ "\\[DRAFT\\]" (But according to the search info above and the results I am seeing, this is really just the same as summary ~ DRAFT because the special characters are not indexed... Sigh.

Andrzej Martyna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2023

so it looks like it is summary ~ RRR,
so... it does not work as expected...
It's a pitty

Like # people like this
PEIGNOT Erwan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2023

You're right Andrzej, it does not work as expected. There is no solution... :-( 

2 votes
Ross Noble
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2024

Ran into exactly the same issue.  We're using `[FE]` and `[BE]` prefixes. This filter works:

summary ~ FE

but this doesn't:

summary ~ BE

 

This is because "be" is a reserved word. You'll have to change "BE" to something else. Special characters can't be filtered on either.

 

See more here: https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html#SpecialCharacters

jira-jql.png

 

2 votes
Andreas Merz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2023

when will these Bug fixed?

 

Would be nice if any escape sequence would work...

0 votes
Lisa Ballard
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2023

this works for us, to find [FE]:

summary ~ "\"[FE]\""
Andreas Merz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2023

i think, \"[FE]\" returns all results with FE and not only [FE]

Like Lisa Ballard likes this

Suggest an answer

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

Atlassian Community Events