Issue Property Search Error in Jira JQL with "~" Operator

Valter Júnior March 7, 2024

I'm encountering an issue with Jira's JQL (Jira Query Language) when using the contains (~) operator to search for an issue property that contains a colon (:) surrounded by characters on both sides. Strangely, this error does not occur when using the equals (=) operator.

To provide more context:

  1. I'm using the JQL contains (~) operator to search for a specific value within an issue property.
  2. The issue property I'm searching for contains a colon (:) surrounded by characters on both sides.
  3. When executing the JQL search with the contains (~) operator, I encounter an error.
  4. However, when I use the equals (=) operator with the same search criteria, the error does not occur.


"Component Versions" = "Version:1" OR issue.property[property].content ~ "Version:1"

The above JQL query results in an error due to the presence of the colon surrounded by characters on both sides in the property value.

Could someone help me understand why this error occurs specifically with the contains (~) operator and provide guidance on how to resolve it? Is there a workaround or alternative approach to achieve the desired search functionality without encountering this error?

Any insights or assistance would be greatly appreciated.

Thank you!

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 Leaders.
March 7, 2024

Hi @Valter Júnior 

Based upon this defect (and its comments), this problem started happening after some update in 2023.  The specific scenario the bug notes is searching for account id values, which often contain colon characters.

https://jira.atlassian.com/browse/JRACLOUD-82997

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events