-
Bug
-
Resolution: Won't Fix
-
Medium
-
4
-
Severity 3 - Minor
-
2
-
Issue Summary
When creating an automation rule, users may add "If / else block" conditions. When using CQL, it may not always work. The status in the audit log will appear as "NO ACTIONS PERFORMED".
We've encountered this issue when using CQL with labels in newly created pages.
Steps to Reproduce
- Create a page and add labels to it.
- Create an automation rule.
- Select any trigger (e.g. page commented)
- Select an If condition.
- Use CQL (e.g. type = page and label = "test")
- Select an action.
Expected Results
The rule should always perform actions
Actual Results
The rule does not always perform actions. The status will appear as "NO ACTIONS PERFORMED".
Workaround
Use the smart values instead.
[CONFCLOUD-79253] Using CQL in "If / else block" conditions doesn't always work
Pinned comments
All comments
All comments
Pinned by
Edson B [Atlassian Support]
Hello, we are closing this bug ticket as Won't Fix for now.
CQL is eventually consistent, which means that when an Automation rule triggers and CQL is used to try to inspect some aspect of the data that was just changed, it's possible that CQL sees the old representation of the data. We have introduced a small delay (up to 10s) into the CQL condition that tries to help reduce false negatives, but it is not a guarantee that the changes will be visible to CQL.
We would advise that you use alternatives to CQL when working with freshly changed data, so specifically using either the smart value condition or the page condition. We understand a lot of users use the `ancestors` field within CQL in the CQL condition today, so we are working on adding ancestor support to the page condition shortly to provide a way to assert whether or not a page is under certain content within the content tree.
If you have use cases that cannot be satisfied through smart values or the page condition, please leave suggestions for us to consider for future components and component enhancements.