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)
(^^ 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:
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.
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:
....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 :(
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.