Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,312
Community Members
 
Community Events
165
Community Groups

Search text inside square bracket

Edited

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)

2 answers

1 accepted

0 votes
Answer accepted

is this working?

summary ~ [BE]*

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)`

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

~ BE]*

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\""

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?

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 

Thank you, I'll look into it.

Like Alexander Pappert likes this
Like Steve Muskiewicz likes this
3 votes

For me, it worked like this :

summary ~ "\\[RRR\\]"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,097 views 34 44
Read article

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