1

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.

2

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:

2
  • Is comment:node:comments an entity or anything else? Which data type must be used? – gladiatorhl2 Feb 29 '16 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 '16 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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