Summary field text sometimes contains some special characters '@', '/', '$', '^' etc. How can I handle it using jql, so that my rule doesn't get failed.
There are a couple of ways to handle special characters in the Summary field while using JQL in Jira to ensure your rules don't fail:
JQL uses special characters for its own operators, so when searching for literal special characters in the Summary field, you need to escape them with a backslash (\). Here's the syntax:
summary ~ "\\@"
This searches for issues where the Summary field literally contains "@" symbol. You can use this approach for other special characters like "/" (\$), "^" (\^), etc.
If you're not interested in the exact special character but want to match summaries containing any special characters, you can use wildcard characters:
For example:
summary ~ ".*[@$/^].*"
This searches for issues where the Summary field contains any of the characters "@", "/", "$", or "^" at any position.
If the special characters aren't crucial for your search, consider using other fields that might not be affected by them. For instance, you could search the Description field instead, or use labels or components to filter issues.
Additional Tips:
By following these approaches, you should effectively handle special characters in the Summary field while using JQL in your Jira.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.