Use smart values with rich text editing
In automation, when you convert plain text content to rich text content in the ‘Publish new page on Confluence’ action, your content will be formatted in a code snippet. This ensures that the smart values in your content will work as intended. The text you’ve written and formatted inside the code snippet will be visible on your Confluence page, but the code snippet itself won’t be.
For example, if you used the following code snippet:
Hello {{initiator.fullName}},
The following pages match your query:
{{#lookupPages}}
Page title: {{title}}
{{lookupPages}}
Regards,
Confluence Automation
The content on your page would appear like this:
Hello John Smith,
The following pages match your query:
Page title: Example page 1
Page title: Example page 2
Page title: Example page 3
Page title: Example page 4
Regards,
Confluence Automation
How to format and edit smart values in rich text
In rich text editing, smart values must be wrapped in inline code ⌘⇧M
or code snippets ```
to work correctly.
To use inline code: Use ⌘⇧M
or type {{
on either side of the smart value to insert it into inline code. You can also use a /
comment to select specific smart value that will appear within a {{}}
format
For example,
{{content.url}}
To use code snippets: Use triple backticks ```
to wrap smart values in code snippets, or search for them by opening the command menu /
. Once the code snippet is inserted, select Smart Values
as the language from the floating toolbar dropdown.
For example,
{{#lookupIssues}}
<a href="{{url}}">{{key}} - {{summary}}</a>
{{/}}
Was this helpful?