Forums

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

Limit scope of FOR EACH Task branch to current page

David Corlette
Contributor
January 14, 2025

Confluence Automation now includes a handy FOR EACH Task branch which will iterate through a set of tasks. My use case is to run an automation from a specific page, and to check if each task on that page is complete or not; if so, then create a Jira issue for that specific task. 

The docs ( https://support.atlassian.com/cloud-automation/docs/branches-in-confluence-automation/#Task-branch ) state: "A task branch applies the same condition and/or action on up to 1,000 tasks that meet the criteria you set.

A task branch will look at all tasks in the associated space (Space automation) or spaces (Global automation)."

I would think a common problem would be to examine the tasks only on the current page (the one on which the Automation is triggered), but this doesn't seem to be an option. So the Automation will go choose 1000 tasks from the current space, I guess, and check those?

- How are the 1000 tasks chosen?

- What happens if there are more than 1000 tasks in the current space? 

- How can i guarantee that the Tasks I am interested in are in the 'considered' set for the FOR EACH?

- Is there ANY way to limit the set of tasks to be considered to be only those from the current page?

At the moment, I am filtering the tasks by setting a variable to the current page ID before I enter the branch (because {{page.id}} gets reset in each parallel branch) and then comparing {{task.contentId}} to my stored page ID. But if end up with > 1000 tasks in my space, I have no way of knowing if the tasks I'm interested in will be considered.

Thoughts?

1 answer

0 votes
Thiago P _Atlassian Support_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2025

Hey there @David Corlette ,

To answer your questions:

  • I'm not familiar with the logic used to fetch Tasks on a Branch, but we can consider it as random for now as there's no way to control the order in which they are presented
  • As mentioned on the page: "Confluence branches can perform actions on up to 1,000 pages, tasks, etc at a time. If the limit is reached, the rule will stop running even if there are more items that meet the rule’s criteria."
  • There's no way to guarantee only the Tasks on a specific Page will be considered on a Task Branch, so a different strategy will be needed for this use case
  • The available criteria for Task Branches are: Assignee, Due Date and Status

Maybe using Triggers such as Task Created or Task Status Changed would help with your use case?

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