Hello,
I am looking to setup an automation that will run on page edit that looks for a specific text string. If this string is not present on the page, I want to send an email.
Is this currently possible? I included a picture of my very simple automation below. Currently this automation always returns true, regardless of if the text is present on the page or not. Thank you
Are you trying to exactly match on the phrase "Document Header Info"?
Your CQL expression uses the CONTAINS ~ operator to search for that text, and I hypothesize those three words are on each page you are checking. I recommend pausing to verify that.
And, the documentation for the CQL CONTAINS operator states it supports the "exact phrase" syntax like JQL:
text ~ "\"Document Header Info\""
But, there is an open defect indicating that does not work due to encoding problems: https://jira.atlassian.com/browse/CONFCLOUD-71411
One possible workaround for this is to get the page content using the REST API and the Send Web Request action, and then use a rule condition on the web response. That will allow performing the exact phrase matching.
Kind regards,
Bill
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.