Is it possible to fetch a list of comments for a given node by using the rule After saving a new comment? After this I would like to change a taxonomy term for a certain comment having a certain term.

1 Answer 1


If your rule reacts on event "After saving a new comment", add a Loop in actions section and select comment:node:comments as a selector.

The loop will go through an array of comments from commented node. There you can specify additional actions/conditions that you wish to perform on each comment.

PS: You will run in the issue of not being able to modify comment fields via Rules

"Unable to modify data "field-taxonomy-term": Entity property comments doesn't support writing."

Here is more information about the issue:

  • Is comment:node:comments an entity or anything else? Which data type must be used? Feb 29, 2016 at 14:00
  • In this case - comment:node:comments is an array of all comment of the node that just received a new comment.
    – oksana-c
    Mar 4, 2016 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.