Workflow 2.0 Field and Rules

Events happening in the community are now at Drupal community events on www.drupal.org.
npercival's picture

Hi,
I have create a site with a Workflow using the Workflow 7.x-2.4 Field module and am sending email using Rules. I cannot seem to find a way to use the Rules module to access the Workflow Comment to include this in the email. I hope I am missing something obvious and this is easy. Any help would be appreciated.

Nathan

Comments

Workflow Comments

merich's picture

I believe the token is '[node:log]' for the comments.
I haven't upgraded in a while so this may be out of date.

Best of luck.

The [node:log] is the

npercival's picture

The [node:log] is the revision log of the node and not the workflow comment. The workflow is now a field and the workflow comments seems to be somehow connected with the field but I cannot seem to find a way to access it.

[node:last-transition:comment

johnv's picture

[node:last-transition:comment] should be the correct one if you have only one Workflow Field per entity.
Or [node:MY_FIELD:DO_NOT_REMEMBER:comment] if you use multiple workflows per entity.

You can find more examples in workflow.test.inc and workflow.tokens.inc.
" * How to test?
" * - Enable module 'Token'; use page admin/help/token;
" * - Enable module 'Token example'; use page examples/token;

Workflow

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: