Forums

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

Smart Values in Lookup Pages not working

Markus Kleinschmidt
Contributor
March 25, 2024

Hi,

I do not get any smart values in the following automation. I only receive a blank email.

However, it recognizes the affected pages in the audit log.

Does anyone have an explanation or solution for this?

 

Snag_12d895.pngSnag_135f1b.png

Thank you :-)

2 answers

1 vote
Trevor Angle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2024

Hi everyone, this is Trevor from the Confluence automation team. I believe this syntax should work (just tested it):

{{#lookupPages}}

{{title}}
{{url}}

{{/}}

I found this syntax for lists documented here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.join-separator-

Jordan Moir April 30, 2024

Thanks Trev! Works like a charm!

1 vote
Shawn Doyle - ReleaseTEAM
Community Champion
March 25, 2024

Try changing from pages to page.

{{page.title}}

Jordan Moir April 17, 2024

Hi Shawn,

 

I'm experiencing the same issue. I can send an email with the smart value {{lookupPages}} in the Content field, but it looks like this:

Screenshot 2024-04-17 at 3.24.20 PM.png

I tried changing the syntax (see below), but the email is blank.

{{#lookupPages}}

{{page.url}}

{{/}}

Screenshot 2024-04-17 at 3.21.15 PM.png

Shawn Doyle - ReleaseTEAM
Community Champion
April 17, 2024

I haven't used lookupPages yet. Looks like it was added last December, but the documentation hasn't caught up with it yet....

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

Your {{/}} is too far away from the #  try {{#lookupPages}}{{/}} to get a count of the pages.

I would assume {{page.url}} is empty because you are doing a CQL search that returns multiple pages.

 

Jordan Moir April 19, 2024

Thanks for your help Shawn. Unfortunately, {{#lookupPages}}{{/}} also returns a blank. I checked the audit log and it says it found 150 pages. Doesn't seem like the # works with lookupPages?

Screenshot 2024-04-19 at 7.58.58 PM.png

Shawn Doyle - ReleaseTEAM
Community Champion
April 19, 2024

I haven't tried it myself.  Worth putting in a bug report. 

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