Forums

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

smart value number of tasks in incomplete state for autmation in confluence

Pedro Garzon
May 20, 2026

Hello,

I'm trying to create a Confluence Automation flow that checks the numbers of tasks that are incomplete.

Has anyone has figure out how to do this? On the web I found smart values like {{tasks}} or 

1 answer

0 votes
Bill Sheboy
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 Champions.
May 20, 2026

Hi @Pedro Garzon 

What is the context / scope of your check? 

  • To check tasks without any other information (e.g., the task details)
    • Use a rule trigger which provides one-and-only-one page
    • Add a Task branch for incomplete ones
    • After the branch (not inside it), check the count with {{tasks.size|0}}
  • To check all the Tasks, you could try using the Send Web Request action to call the REST API endpoint to get tasks, filtering status on incomplete ones

 

I do not believe the first approach provides any page information.  The second one with the REST API will have the page ID values with each task.

 

Kind regards,
Bill

Pedro Garzon
May 25, 2026

I have a page in confluence with 5 actions. I would like to create an automation that archives the page when the 5 actions are complete. 

I will try again but last time I tried a Task Branch Confluence did not recognized the smart value {{task.size}} = 0. I do not recognize the "|0}}" do you know where in the confluence documentation I can find the reference for it?

Thank you  

 

Bill Sheboy
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 Champions.
May 26, 2026

Hi @Pedro Garzon 

Please note for the Task Branch, the smart value after the branch is plural: {{tasks}}

And this will count all possible tasks which the rule's actor / user can access...not just the ones for the page.  To only count for one page, I believe the REST API technique and filtering on the page id is required.

 

Finally, the |0 part provides a default value of 0 when the smart value does not return anything (i.e., it is a null value).  That syntax is listed in the Jira smart value documentation rather than in the Confluence information:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#Default-values

Suggest an answer

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

Atlassian Community Events