How to access node title when new comment added

Created on 15 August 2023, over 1 year ago

Problem/Motivation

Simply I would like to send email when new comment inserted, but [node:title] is not resolved

Steps to reproduce

1. I created a workflow triggered by "Insert Content Entity" with type="Comment: Comments".
2. Link it to a "Send Email" task where message:

New comment added to: "[node:title]" by "[comment:author:name]": [comment:body]

This message resolve [comment:author:name] and [comment:body] tokens correcly, but not [node:title]. [node:title] return as empty.

I wonder how to return the current node title where the new comment added?

💬 Support request
Status

Closed: works as designed

Version

1.1

Component

Documentation

Created by

🇪🇬Egypt rami.sedhom

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rami.sedhom
  • 🇩🇪Germany jurgenhaas Gottmadingen

    You may want to have a look into the token documentation for ECA at https://ecaguide.org/eca/concepts/tokens/

    To make use of tokens, something needs to make them available first. The [comment] token is available because your event is comment related, and can therefore provide that token automatically for your. Everything else needs to be made available explicitly.

  • Assigned to rami.sedhom
  • Status changed to Closed: works as designed over 1 year ago
  • 🇪🇬Egypt rami.sedhom

    Thanks @jurgenhaas for you reply. I found the correct token to reference the related node title and it's available in [comment] token: [comment:entity:title]

Production build 0.71.5 2024