Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Escaping multiple characters in a JQL using smart values

Doods Perea
Contributor
March 21, 2025

Need help please.

I am using the following in my Automation Rule to find newly created duplicate tickets and close them.

Summary ~ {{issue.summary.asJsonString}} and Type = "Security Incident"

This work well with Summary values without any special characters.  However, for example, if the Summary is: "Microsoft Defender error - check guideline:  Do you have access?", I get the following error:

 

Unable to parse the text 'Microsoft Defender error - check guideline: Do yo have access?' for field 'Summary'.

Thanks!

Doods

 

2 answers

5 votes
Sergei Troshin
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 21, 2025

Hi @Doods Perea hope you're doing well!

Try out this JQL:

summary ~ "\"{{issue.summary}}\""

screen.png 
If you have any additional questions or encounter any difficulties, let me know, and I'll do my best to help you.

0 votes
Duc Thang TRAN
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 21, 2025

Hello @Doods Perea 

Since your request contains multiple words, you need to add quotation marks ('')

Summary ~ "{{issue.summary.asJsonString}}" and Type = "Security Incident"

 Or you can using the jql exact as @Sergei Troshin  suggested

Best,

 

Sergei Troshin
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 21, 2025

Hi @Duc Thang TRAN 

Have you tested this:

Summary ~ "{{issue.summary.asJsonString}}"

expression?

I've tested and it seems that it is not working properly.

Duc Thang TRAN
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 21, 2025

Hello @Sergei Troshin 

No, I haven't, and I don’t usually use asJsonString.

However, after testing, I noticed this smart value automatically adds quotation marks ("") in the JQL. So, for my suggestion, it ends up adding an extra set of quotation mark and not worked as expected. 

After testing,  your suggestion it the best solution (searche text normal don't work this case) 

 

Suggest an answer

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

Atlassian Community Events