I am having errors related to the smart value in step 5. Would like to know if this is the correct method or there are any other options for me to send 1 email to the page owner/author to review page whicha are older than 6 months. ALso would like to makr them as reviewed once it has been updated or reviewd.
Thanks in advance.
@shaily_mehta Welcome to the Atlassian Community.
I don't use automation myself, so I'm not sure if what you have done is based on this article, but I wanted to give you the link in case you haven't seen this: https://community.atlassian.com/forums/Confluence-articles/New-batch-notifications-and-look-up-capabilities-%EF%B8%8F/ba-p/2757589
Hi @shaily_mehta -- Welcome to the Atlassian Community!
Short answer: as written, the rule you describe cannot work as you intend. There is a template rule you could try instead.
From the rule list, select Templates and under the Notify section, select this rule and update the timeframe in the branch to meet your needs:
Notify people about inactive pages when scheduled (recurring)
If you still want to use your rule as you described it, context is important for the community to help. Please post the following:
Until we see those...
The syntax you use in step #3 to find and create the variable for uniqueAuthors is incorrect. Please try this syntax to use the distinct function:
{{lookupPages.author.emailAddress.distinct}}
Next, once that variable has been created, it produces a delimited list of email address values. That must be split() apart to be used in the advanced branch in step #4:
{{uniqueAuthors.split(", ")}}
Next, in step #5 there are several problems, and the most important one is:
Once inside of an iterator such as over {{lookupPages}}, other data is not visible. Thus the variable authorEmail cannot be "seen" to perform the list filtering. Unfortunately, the Lookup Pages action does not support smart values for comparison of the author to the branch variable.
I believe the only workaround for your scenario would be to use CQL can call the REST API endpoint to get the pages using the Send Web Request action. If you want to try that, here are some references to help:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Bill for your detailed response. I will try the REST API call today.
Here is the image for your reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please take a look at the template rule first as that may do everything you need. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.