Here is the rule as it is currently. I need to fetch the interval from the no...

Contribution Date
Technology
Contribution Project
Contribution Details

Here is the rule as it is currently. I need to fetch the interval from the node 'applied_plan' and increment the field from 'recipient_user'

{ "rules_apply_a_plan_to_a_user" : { "LABEL" : "Apply a plan to a user", "PLUGIN" : "action set", "OWNER" : "rules", "REQUIRES" : [ "rules" ], "USES VARIABLES" : { "recipient_user" : { "label" : "Recipient User", "type" : "user" }, "applied_plan" : { "label" : "Applied Plan", "type" : "node" } }, "ACTION SET" : [ { "user_add_role" : { "account" : [ "recipient-user" ], "roles" : { "value" : { "3" : "3" } } } }, { "entity_create" : { "USING" : { "type" : "node", "param_type" : "user_subscription_record", "param_title" : "[applied-plan:title] plan applied to [recipient-user:name]", "param_author" : [ "site:current-user" ] }, "PROVIDE" : { "entity_created" : { "plan_log" : "Plan log entry" } } } }, { "data_set" : { "data" : [ "plan-log:field-user" ], "value" : [ "recipient-user" ] } }, { "data_set" : { "data" : [ "plan-log:field-node" ], "value" : [ "applied-plan" ] } }, { "entity_save" : { "data" : [ "plan-log" ] } } ] } }
Contribution Author
Files count
0
Patches count
0