Forums

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

CQL returns results as expected. but IF block attached to that doesn't run

Chris Buzon
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 1, 2023

I'm experimenting with the new Confluence automation rules, and I'm seeing that evaluation of CQL doesn't appear to work....at all.

I'm doing a simple test. I've also used CQL before without much issue.

-----------

- Creating a new page using the Create-with-template macro
- The Template has one label "test_page", and some nonsense text.
- When a new page is published with that label, in my personal space, I want a slack message with some of the page info, like the URL of the new page.  This will be leveraged elsewhere later.

The rule has the trigger of publishing a new page (no additional configuration)
The 2nd block is an IF/Else block, which sends a slack message in both cases.


IF: label = test_page   (see screenshot)

-- Action: slack message with {{smart values}}

(note - the validator returns 3 results, but there are actually 8 pages with this label in my space).  Screenshot attached.

Else:
-- Action: slack message with {[smart values}}
  (using real smart values here)
-- Action: slack message "CQL didn't work"

The message payload is the same for the both if/else, and I can see that when "else" is used, the information in the slack message is what I expect. SO the smart values are fine.

I think I've just found a bug in the Confluence automation, but I'd like to be sure before I actually send in a help desk request.


Screenshots from the rule:
image (31).pngimage (32).png

image(1).png

mspaint_2023-08-01_14-18-25.png

2 answers

0 votes
Chris Buzon
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 4, 2023

No answers for CQL have been found, however the Advanced Compare condition DOES work as expected.  You can add several of those to narrow down to what you need, similiar to how a CQL query can be chained together for a similar result.  Not quite as nice to read, but functional.

0 votes
Chris Buzon
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 1, 2023

This EVALUATED block is weird, it's got 2 conditions I expect exist because this isn't a global rule, but it's hard to be 100% sure of that.  The rule is only explicitly using the label CQL, so it must be adding the additional stuff because this is in my personal space.

I've also tried both AND and OR for the CQL conditions, the problem occurs in both cases.


Chris Buzon
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 2, 2023

@Sheerine BaucumI saw you answering some other Confluence automation questions, so I'm tagging you in case your team is unaware, or in case you able to spot where I am going wrong.

No reply actually needed, just want to make sure the Atlassian team is aware of the (potential) bug. 

Suggest an answer

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

Atlassian Community Events