Forums

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

In an automation, if you are trying to compare text with special characters.

Kent Pirlo August 6, 2024



In an automation, if you are trying to compare text with special characters.

 

 

For example:
IF {{page.parent.url}} contains 
/wiki/spaces/~5fdbb67334847e006942429e/pages/430440540/Sample+Pages

it is not matching the rule.

even trying    Sample+Pages   still does not match. 

If i just use like  430440540  it matches and works. 

How do i get it to match with slashes and/or plus, etc. 

2 answers

0 votes
Barbara Szczesniak
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.
August 9, 2024

@Kent Pirlo I believe I've seen something similar to your situation recently. 

You might want to:

0 votes
Aron Gombas _Midori_
Community Champion
August 7, 2024

@Kent Pirlo First test if "Sample" matches. It probably will. Also test "Pages", which probably will, too.

If so, then it is very-very likely that the problem is with the "+" character and that must be escaped somehow.

I'd primarily try escaping that with '\', lile "Sample\+Pages".

Kent Pirlo August 7, 2024

Thanks! yeah i tried escaping with \ and didn't work for me. I also tried using like %2B in place of the plus sign, but that did not work either.. 

Aron Gombas _Midori_
Community Champion
August 7, 2024

How about just "Sample Pages"?

The '+' is the URL-encoded form of the space character. Who knows, maybe the URL is decoded before the comparison? May worth a try...

Aron Gombas _Midori_
Community Champion
August 7, 2024

BTW can you show me the comparator component you are using?

Kent Pirlo August 9, 2024


The idea is that when a page is moved under another specific page, it gets tagged. 
So to be safe it is the correct page, i would most likely put the full url not just Sample+Pages.. 

Screenshot 2024-08-09 085228.png

Suggest an answer

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

Atlassian Community Events