Forums

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

USA state abbreviations and keywords... OR and IN need to use in JQL

Aaron Minoo
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!
April 29, 2022

Hello, I have summaries that have state abbreviations that are OR(egon) and IN(diana) but I need to use them in jql portion of summary ~. 

Thanks in advance for any hints or tips provided. 

1 answer

0 votes
Bill Sheboy
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 Champions.
April 30, 2022

Hi @Aaron Minoo 

Are you asking about searching for a string which contains parentheses?

If so, there is a known issue where escaping such special characters does not work for built-in JQL features: https://jira.atlassian.com/browse/JRACLOUD-62859

It appears that using the following syntax will return issues with parentheses but it will also match on embedded spaces:

summary ~ "OR\\(egon\\)"

Kind regards,
Bill

Aaron Minoo
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!
May 2, 2022

Thanks Bill. But I was using the full names of the states as the reasoning of this dilemma. I do not need the string function, just IN or OR. 

Bill Sheboy
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 Champions.
May 2, 2022

Thanks for clarifying, Aaron: you were noting the problem of searching for JQL reserved words, such as with this syntax:

summary ~ "\"IN\"" OR summary ~ "\"OR\""

I do not think searching for items in the reserved words list is possible unless the system settings are changed to do so...And per the documentation that can lead to unexpected results:

https://support.atlassian.com/jira-software-cloud/docs/search-syntax-for-text-fields/#Searchsyntaxfortextfields-reservedReservedwords

A work-around for this may be to either fully spell out the state names.  Even using the abbreviations in a separate single/multiselect field may not work due to reserved work checks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events