Forums

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

How to test regex for an automatic rule

Jeff Haws January 19, 2024

I am trying to create an automation rule that will process a list of documents. I am selecting them using regex. It is currently not working. 

I am looking for a way to test my regex to make sure I am selecting the right documents. Like can I use regex when searching confluence for a document? Is there someway I can validate my statement? 

1 answer

0 votes
Jehan Bhathena
Community Champion
January 21, 2024 edited

Hi @Jeff Haws ,

Haven't used much of Confluence Automation, but I use this site for testing my Jira Automation regex https://regex101.com/

While this is not 100% accurate, this works for most of the strings I've tried. For stuff like OR, AND, you have a different syntax than the one you might get it via regex101. You will find multiple community posts that might help with those situations eg. https://community.atlassian.com/t5/Jira-Software-questions/automation-Advanced-compare-quot-or-quot-condition/qaq-p/1815711#M502842

After you've made you're regex, in Jira automation we can create a Variable and print that value using "Log action", if these actions are available in Confluence automation too then this would be of help when testing the output.

Hope this helps.

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