Forums

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

Confused and have questions about the batch automation

Edward Hunter February 25, 2025

I've been attempting to duplicate the logic in the article about batch automation
and I have some confusion about the specifics. 

 

Firstly, while I can get the automation to send a single notification per author with inactive pages, the automation is sending each author the entire list of inactive pages, not just their own pages.  Is this intended functionality, or am I missing something?  (note, I am filtering to a single author and recipient email in this automation for testing)

Screenshot 2025-02-25 at 1.55.30 PM.pngScreenshot 2025-02-25 at 1.55.40 PM.png

(^^ This sends the email recipient a list of every inactive page, regardless if they are not the author.)

The second thing I am confused about is:

In the article, it describes the use of {{inactivePagesPerAuthor}} and goes on to discuss how, when mapped to a variable e.g. authorInactivePages you can use .first() in a smart value, and, while I can find smart value documentation that describes list.first.thing, I cannot find any reference in the documentation to first(), and the post includes a screen cap I think is an error, but I am not sure.  From the batch automation post:

Screenshot 2025-02-25 at 2.01.05 PM.png

I am assuming that this should actually read "authorInactivePages.first().... and just want to verify this, and find out where this particular list functionality for smart values is documented. 

2 answers

0 votes
Michelle Smith May 1, 2025

I'm confused too!   Did you get anywhere with this?   I read the link from John Funk, but it hasn't helped me much.

I agree that there is a typo in the screenshot, I'm 99% sure it should be authorInactivePages.First()

There's a reference on cloud-automation/docs/smart-values-in-confluence-automation/  to the "List smart values"

The original article references this:

  1. {{lookupPagesPerOwner/Author}}
  2. {{lookupTasks}}
  3. {{lookupTasksPerAssignee}}

....but the word "lookup" is confusing.   I think this is actually a placeholder for an attribute that belongs to the ?smart values?  So from the article, the reference to {{authorInactivePagesPerAuthor}} would appear to reference the author attribute of the inactive pages collection via the variable {{authorInactivePages}}.

BUT....it doesn't seem to work.....I've been using {{lookupTasks}} as my Smart Value, and I get "The provided smart value couldn't be resolved to an object".

I wanted to get batch notifications that sent one email per page listing the incomplete tasks that are on that page, to either the page owner/creator/author.   But I got nowhere with that, so now I'm just trying to send people an email that lists all the tasks they have created that are still incomplete:


Task Branch: (Status in incomplete)

Advanced Branch: {{creatorTasks}} as variable openTasks*

If: openTasks.first().creator.emailAddress <> Empty

Send Email to openTasks.first().creator.emailAddress 


*also tried {{creatorTasks}}, {{creatortasks}}, {{statusTasks}}) but i get "The provided smart value couldn't be resolved to an object".   {{creatorTasks}} would seem to be the correct syntax (i.e. for each task creator....send the email).... Using {{Tasks}} doesn't throw this error - but I get "No Actions Performed" when the rule is run which doesn't make sense because there ARE incomplete tasks created by me.  

I seem to be circling the drain on this, very frustrating :(

0 votes
John Funk
Community Champion
March 2, 2025

Hi Edward - Welcome to the Atlassian Community!

You will probably need to use the lookupPages functionality for rules. See the guidance here:

https://support.atlassian.com/cloud-automation/docs/actions-in-confluence-automation/

 

Suggest an answer

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

Atlassian Community Events