Unclear error in Automation for Confluence
Asked by Nofar Ben Kereth:

Hey,

Im trying to build an automation that sends a list of open tasks from a page to Slack by schedule. Im getting the attached error, not sure how to proceed. Adding the automation itself as well. I tried to change the condition a few times to several options but no success.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/215370iC70E8B5841DD4888/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/215369iD692BAC0CB8B146A/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Eden Eliyahu
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197)

Thanks for your help (I am working with Nofar).

We were able to send slack messages regarding incomplete tasks, but there is one major problem**: we couldn't send incomplete tasks for a specific page.**

Message sent to Slack with all the incomplete tasks in all the space.

Do you know how to resolve this issue?

Thanks!

comments: author: Alex Koxaras _Relational_
body: Hi [@Eden Eliyahu](/t5/user/viewprofilepage/user-id/4612136)

Maybe narrowing down your CQL will do that.


author: Eden Eliyahu
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) We tried. Unfortunately, no.

![Screen Shot 2022-09-12 at 10.19.40.png](https://community.atlassian.com/t5/image/serverpage/image-id/215422iC19D07942172A017/image-size/large?v=v2&px=999 "Screen Shot 2022-09-12 at 10.19.40.png")


author: Alex Koxaras _Relational_
body: If you use the label on your CQL, of course it will check every page. If you want your tasks to be from a specific page, then add the ID = your_page_id


author: Eden Eliyahu
body: This is the only page with this label. :)

We tried also with ID

![Screen Shot 2022-09-12 at 15.05.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/215468i75E0BFB615A9A654/image-size/large?v=v2&px=999 "Screen Shot 2022-09-12 at 15.05.50.png")


author: Alex Koxaras _Relational_
body: And that rule also notifies you for tasks from other pages?


author: Eden Eliyahu
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) Yes


author: Alex Koxaras _Relational_
body: [@Eden Eliyahu](/t5/user/viewprofilepage/user-id/4612136) what about the archive content (I see a check box on the image above). do you have any other page with the label test2 which is archived?

And what about the results you are getting? They are from which page? WHat is the label on that page? Did you at any point place the "test2" label on that page? You have to provide me with all the necessary details/screenshots.


author: Eden Eliyahu
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) We also tried to do "if" with page ID and not labels, and the results are the same.

(The rule includes the incomplete tasks only)

attached:

1- The rule with the page id condition.

2- The slack message (5 tasks)

3- The confluence page (2 tasks)

Thanks again!

![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/216559iCBC7A4F1C0EEFEE6/image-size/large?v=v2&px=999 "1.png")![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/216560iD72FE36EB63938C2/image-size/large?v=v2&px=999 "2.png")![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/216561iD7266DF55515A4D9/image-size/large?v=v2&px=999 "3.png")![4.png](https://community.atlassian.com/t5/image/serverpage/image-id/216558iF761CE8CCF5643DB/image-size/large?v=v2&px=999 "4.png")


author: Alex Koxaras _Relational_
body: [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861) hi!

I've tested your rule and it works fine. I used another trigger to be honest just to test it. My initial thought would be if that page ID is from a page that is published. Is it published?

comments: author: Nofar Ben Kereth
body: Thanks Alex!

The page is published.

I changed the trigger as well and got a different error, can you take a look? ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/215371iD45D783DE9DA015B/image-size/large?v=v2&px=999 "image.png")


author: Alex Koxaras _Relational_
body: Do you have on this specific page (CQL) any task? If yes, in what form?


author: Nofar Ben Kereth
body: Yes I have.

It's from the action item macro ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/215372iEF420C0099231D59/image-size/large?v=v2&px=999 "image.png")


author: Alex Koxaras _Relational_
body: Can you please share a screenshot of your tasks?

I have two tasks and sending messages to slack is just fine.

![conf automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/215373i922333A2076BC47B/image-size/large?v=v2&px=999 "conf automation.png")